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'); }); });