feature/17-automated_tests #21

Merged
niggl merged 56 commits from feature/17-automated_tests into dev 2020-12-10 19:36:08 +00:00
Showing only changes of commit 431fd608a6 - Show all commits

View File

@ -12,3 +12,11 @@ describe('GET /', () => {
expect(res.status).toEqual(404);
});
});
describe('GET /api/teams', () => {
it('is http 200 && is json', async () => {
const res = await axios.get('http://localhost:4010/api/teams', { validateStatus: undefined });
console.log(res.headers);
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json")
});
});