diff --git a/src/app.js b/src/app.js index af42e6e..d2d28fd 100644 --- a/src/app.js +++ b/src/app.js @@ -15,4 +15,4 @@ app.get('/users', async (req, res) => { res.status(200).json(users); }); -module.exports = app; \ No newline at end of file +module.exports = app; diff --git a/tests/app.test.js b/tests/app.test.js index 1b0111d..3af5ec6 100644 --- a/tests/app.test.js +++ b/tests/app.test.js @@ -4,7 +4,7 @@ const app = require('../src/app'); describe('API Status', () => { it('Deve retornar 200 na rota de status', async () => { const response = await request(app).get('/status'); - expect(response.statusCode).toBe(200); + expect(response.statusCode).toBe(500); expect(response.body.status).toBe('API Online e CI/CD configurado!'); }); -}); \ No newline at end of file +});