Fixed runner get test

ref #17
This commit is contained in:
Nicolai Ort 2020-12-10 18:30:09 +01:00
parent 49ac7be367
commit e223c060d4

View File

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