Password security feature/99-password_checks #177

Merged
niggl merged 18 commits from feature/99-password_checks into dev 2021-03-26 20:29:37 +00:00
Showing only changes of commit 8154e715bb - Show all commits

View File

@ -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")
});