Adjusted tests for the new responseType parameter (part 3)

ref #132
This commit is contained in:
2021-01-30 16:19:20 +01:00
parent ff8af090e3
commit 8dc2810c0c
7 changed files with 7 additions and 7 deletions

View File

@@ -17,7 +17,6 @@ beforeAll(async () => {
describe('GET /api/runners', () => {
it('basic get should return 200', async () => {
const res = await axios.get(base + '/api/runners', axios_config);
console.log(res.data)
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json")
});

View File

@@ -129,9 +129,8 @@ describe('GET /api/teams/:id/runners after adding', () => {
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json")
});
it('check if scans was added via the orgs/runners endpoint.', async () => {
it('check if runner was added via the teams/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);