feature/17-automated_tests #21

Merged
niggl merged 56 commits from feature/17-automated_tests into dev 2020-12-10 19:36:08 +00:00
Showing only changes of commit 6e12b014e7 - Show all commits

View File

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