added non-existant deletion test for teams

ref #17
This commit is contained in:
Nicolai Ort 2020-12-09 19:55:36 +01:00
parent 80ef7e8c3a
commit 71e5be2ba4
1 changed files with 8 additions and 1 deletions

View File

@ -44,4 +44,11 @@ describe('adding org', () => {
expect(res3.status).toEqual(404);
expect(res3.headers['content-type']).toContain("application/json")
});
});
});
// ---------------
describe('adding + deletion (non-existant)', () => {
it('delete', async () => {
const res2 = await axios.delete(base + '/api/teams/0', { validateStatus: undefined });
expect(res2.status).toEqual(204);
});
});