From eff17c16da1df3b1125fbe501902733c69ca6d09 Mon Sep 17 00:00:00 2001 From: Fernando Jose Gonzalez Sierra <90760906+UO277938@users.noreply.github.com> Date: Tue, 9 Apr 2024 23:53:40 +0200 Subject: [PATCH] Delete questionService directory --- questionService/server.test.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 questionService/server.test.js diff --git a/questionService/server.test.js b/questionService/server.test.js deleted file mode 100644 index df73004..0000000 --- a/questionService/server.test.js +++ /dev/null @@ -1,21 +0,0 @@ -const request = require('supertest'); -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'); - expect(response.statusCode).toBe(200); - expect(response.body).toHaveProperty('question'); - expect(response.body).toHaveProperty('answerGood'); - expect(response.body).toHaveProperty('answers'); - expect(response.body.answers).toHaveLength(4); - }); - - - -});