future proved the group update failture

ref #17
This commit is contained in:
Nicolai Ort 2020-12-10 19:48:50 +01:00
parent c20f01f485
commit 6e12b014e7
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ describe('Update runner group with invalid group after adding', () => {
expect(res2.headers['content-type']).toContain("application/json")
});
it('invalid update should return 404', async () => {
added_org.id++;
added_org.id = 0;
added_runner.group = added_org;
const res3 = await axios.put(base + '/api/runners/' + added_runner.id, added_runner, { validateStatus: undefined });
expect(res3.status).toEqual(404);