Added scans returns 200 test
All checks were successful
continuous-integration/drone/pr Build is passing

ref #151
This commit is contained in:
Nicolai Ort 2021-03-04 16:40:05 +01:00
parent ae7d617690
commit 82c65b632c

View File

@ -40,4 +40,9 @@ describe('register + get should return 200', () => {
expect(res.status).toEqual(200);
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");
});
});