Adjusted tests for the new responseType parameter (part 1)

ref #132
This commit is contained in:
2021-01-29 18:46:15 +01:00
parent 2a87819486
commit bcc15e4286
18 changed files with 113 additions and 62 deletions

View File

@@ -131,6 +131,7 @@ describe('GET /api/teams/:id/runners after adding', () => {
});
it('check if scans was added via the orgs/runners endpoint.', async () => {
const res = await axios.get(base + '/api/teams/' + added_team.id + "/runners", axios_config);
console.log(res.data);
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json");
expect(res.data).toContainEqual(added_runner);