fix: update test to use correct route (/) instead of /health

This commit is contained in:
soufiane 2025-11-18 16:59:43 +01:00
parent f9dd22909c
commit ddc4c09323

View File

@ -2,8 +2,9 @@ import request from 'supertest';
import app from '../index.js';
describe('Test API health', () => {
it('GET /health doit répondre 200', async () => {
const res = await request(app).get('/health');
it('GET / doit répondre 200', async () => {
const res = await request(app).get('/');
expect(res.statusCode).toBe(200);
expect(res.body).toHaveProperty('message');
});
});