Fixed fluctuating test bahaviour

ref #112
This commit is contained in:
Nicolai Ort 2021-01-21 19:10:59 +01:00
parent f8d7544517
commit 1227408407
1 changed files with 0 additions and 5 deletions

View File

@ -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);