diff --git a/src/tests/users/user_delete.spec.ts b/src/tests/users/user_delete.spec.ts index 736e40d..b57c010 100644 --- a/src/tests/users/user_delete.spec.ts +++ b/src/tests/users/user_delete.spec.ts @@ -18,7 +18,7 @@ beforeAll(async () => { // --------------- describe('adding + deletion (non-existant)', () => { it('delete', async () => { - const res2 = await axios.delete(base + '/api/users/0', axios_config); + const res2 = await axios.delete(base + '/api/users/0?force=true', axios_config); expect(res2.status).toEqual(204); }); }); @@ -36,7 +36,7 @@ describe('adding + deletion (successfull)', () => { expect(res.status).toEqual(200); }); it('delete', async () => { - const res2 = await axios.delete(base + '/api/users/' + added_user.id, axios_config); + const res2 = await axios.delete(base + '/api/users/' + added_user.id + "?force=true", axios_config); expect(res2.status).toEqual(200); expect(res2.headers['content-type']).toContain("application/json") });