Alpha Release 0.0.7 #73

Merged
niggl merged 74 commits from dev into main 2021-01-03 17:22:28 +00:00
Showing only changes of commit f9e314bf9f - Show all commits

View File

@ -60,6 +60,16 @@ describe('POST /api/donors with errors', () => {
expect(res2.status).toEqual(400);
expect(res2.headers['content-type']).toContain("application/json")
});
it('creating a new donor without an address but with receiptNeeded=true 406', async () => {
const res2 = await axios.post(base + '/api/donors', {
"firstname": "string",
"middlename": "string",
"lastname": "string",
"receiptNeeded": true
}, axios_config);
expect(res2.status).toEqual(406);
expect(res2.headers['content-type']).toContain("application/json")
});
});
// ---------------
describe('POST /api/donors working', () => {