diff --git a/src/tests/firsttest.spec.ts b/src/tests/firsttest.spec.ts index 3e67076..13492eb 100644 --- a/src/tests/firsttest.spec.ts +++ b/src/tests/firsttest.spec.ts @@ -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") + }); +});