fix: update test to use correct route (/) instead of /health
This commit is contained in:
parent
f9dd22909c
commit
ddc4c09323
|
|
@ -2,8 +2,9 @@ import request from 'supertest';
|
||||||
import app from '../index.js';
|
import app from '../index.js';
|
||||||
|
|
||||||
describe('Test API health', () => {
|
describe('Test API health', () => {
|
||||||
it('GET /health doit répondre 200', async () => {
|
it('GET / doit répondre 200', async () => {
|
||||||
const res = await request(app).get('/health');
|
const res = await request(app).get('/');
|
||||||
expect(res.statusCode).toBe(200);
|
expect(res.statusCode).toBe(200);
|
||||||
|
expect(res.body).toHaveProperty('message');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user