Initial project template
This commit is contained in:
10
apps/api-e2e/src/api/api.spec.ts
Normal file
10
apps/api-e2e/src/api/api.spec.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import axios from 'axios';
|
||||
|
||||
describe('GET /api', () => {
|
||||
it('should return a message', async () => {
|
||||
const res = await axios.get(`/api`);
|
||||
|
||||
expect(res.status).toBe(200);
|
||||
expect(res.data).toEqual({ message: 'Hello API' });
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user