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 e223c060d4 - Show all commits

View File

@ -51,7 +51,7 @@ describe('GET /api/runners after adding', () => {
const res4 = await axios.get(base + '/api/runners/', { validateStatus: undefined }); const res4 = await axios.get(base + '/api/runners/', { validateStatus: undefined });
expect(res4.status).toEqual(200); expect(res4.status).toEqual(200);
expect(res4.headers['content-type']).toContain("application/json") expect(res4.headers['content-type']).toContain("application/json")
let gotten_runner2 = res4.data[res4.data.length - 1] let gotten_runners = res4.data
expect(gotten_runner2).toEqual(added_runner); expect(gotten_runners).toContainEqual(added_runner);
}); });
}); });