Added scans returns 200 test
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
ref #151
This commit is contained in:
parent
ae7d617690
commit
82c65b632c
@ -40,4 +40,9 @@ describe('register + get should return 200', () => {
|
|||||||
expect(res.status).toEqual(200);
|
expect(res.status).toEqual(200);
|
||||||
expect(res.headers['content-type']).toContain("application/json");
|
expect(res.headers['content-type']).toContain("application/json");
|
||||||
});
|
});
|
||||||
|
it('get scans with valid jwt should return 200', async () => {
|
||||||
|
const res = await axios.get(base + '/api/runners/me/' + added_runner.token + "/scans", axios_config);
|
||||||
|
expect(res.status).toEqual(200);
|
||||||
|
expect(res.headers['content-type']).toContain("application/json");
|
||||||
|
});
|
||||||
});
|
});
|
Loading…
x
Reference in New Issue
Block a user