From ddc4c09323fcb70bf1175a03cc5168c3567b36ac Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 18 Nov 2025 16:59:43 +0100 Subject: [PATCH] fix: update test to use correct route (/) instead of /health --- test/app.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/app.test.js b/test/app.test.js index fd274a2b..79807eb7 100644 --- a/test/app.test.js +++ b/test/app.test.js @@ -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'); }); });