Now forceing user deletion in tests
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
ref #99
This commit is contained in:
parent
4c6665062f
commit
8154e715bb
|
@ -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")
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue