@@ -14,9 +14,9 @@ beforeAll(async () => {
 | 
			
		||||
	};
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
describe('DELETE scan (non-existant)', () => {
 | 
			
		||||
describe('DELETE donation (non-existant)', () => {
 | 
			
		||||
	it('delete', async () => {
 | 
			
		||||
		const res = await axios.delete(base + '/api/scans/0', axios_config);
 | 
			
		||||
		const res = await axios.delete(base + '/api/donations/0', axios_config);
 | 
			
		||||
		expect(res.status).toEqual(204);
 | 
			
		||||
	});
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@ describe('adding + getting fixed donation', () => {
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
		expect(res.headers['content-type']).toContain("application/json")
 | 
			
		||||
	});
 | 
			
		||||
	it('check if scans was added (no parameter validation)', async () => {
 | 
			
		||||
	it('check if donation was added (no parameter validation)', async () => {
 | 
			
		||||
		const res = await axios.get(base + '/api/donations/' + added_donation.id, axios_config);
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
		expect(res.headers['content-type']).toContain("application/json");
 | 
			
		||||
@@ -100,7 +100,7 @@ describe('adding + getting distance donation', () => {
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
		expect(res.headers['content-type']).toContain("application/json")
 | 
			
		||||
	});
 | 
			
		||||
	it('check if scans was added (no parameter validation)', async () => {
 | 
			
		||||
	it('check if donation was added (no parameter validation)', async () => {
 | 
			
		||||
		const res = await axios.get(base + '/api/donations/' + added_donation.id, axios_config);
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
		expect(res.headers['content-type']).toContain("application/json");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user