parent
f8d7544517
commit
1227408407
|
@ -15,11 +15,6 @@ beforeAll(async () => {
|
|||
});
|
||||
|
||||
describe('GET /api/runners/me invalid should return fail', () => {
|
||||
it('get without token should return 406', async () => {
|
||||
const res = await axios.get(base + '/api/runners/me', axios_config);
|
||||
expect(res.status).toEqual(406);
|
||||
expect(res.headers['content-type']).toContain("application/json");
|
||||
});
|
||||
it('get with invalid jwt should return 401', async () => {
|
||||
const res = await axios.get(base + '/api/runners/me/123.123', axios_config);
|
||||
expect(res.status).toEqual(401);
|
||||
|
|
Loading…
Reference in New Issue