diff --git a/questionservice/server.test.js b/questionservice/server.test.js index 8e0d3d9..df73004 100644 --- a/questionservice/server.test.js +++ b/questionservice/server.test.js @@ -1,8 +1,11 @@ const request = require('supertest'); -const axios = require('axios'); const app = require('./server'); const fs = require('fs'); +afterAll(async () => { + app.close(); +}); + describe('GET /pregunta', () => { it('debería devolver una pregunta y respuestas con éxito', async () => { const response = await request(app).get('/pregunta'); @@ -12,5 +15,7 @@ describe('GET /pregunta', () => { expect(response.body).toHaveProperty('answers'); expect(response.body.answers).toHaveLength(4); }); + + -}); \ No newline at end of file +});