parent
570c34bed0
commit
f71a22f4dd
|
@ -65,4 +65,10 @@ describe('GET /api/runners after adding', () => {
|
|||
let gotten_runners = res4.data
|
||||
expect(gotten_runners).toContainEqual(added_runner);
|
||||
});
|
||||
it('check if scans was added via the orgs/runners endpoint.', async () => {
|
||||
const res = await axios.get(base + '/api/organizations/' + added_org_id + "/runners", axios_config);
|
||||
expect(res.status).toEqual(200);
|
||||
expect(res.headers['content-type']).toContain("application/json");
|
||||
expect(res.data).toContainEqual(added_runner);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue