blakus/apps/fastify-api-e2e/src/fastify-api/fastify-api.spec.ts

11 lines
239 B
TypeScript

import axios from 'axios';
describe('GET /', () => {
it('should return a message', async () => {
const res = await axios.get(`/`);
expect(res.status).toBe(200);
expect(res.data).toEqual({ message: 'Hello API' });
});
});