14
src/tests/firsttest.spec.ts
Normal file
14
src/tests/firsttest.spec.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import axios from 'axios';
|
||||
|
||||
describe('GET /api/openapi.json', () => {
|
||||
it('is http 200', async () => {
|
||||
const res = await axios.get('http://localhost:4010/api/openapi.json');
|
||||
expect(res.status).toEqual(200);
|
||||
});
|
||||
});
|
||||
describe('GET /', () => {
|
||||
it('is http 404', async () => {
|
||||
const res = await axios.get('http://localhost:4010/', { validateStatus: undefined });
|
||||
expect(res.status).toEqual(404);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user