From 045cd599e02f1e352eafae1563a0aaee75d2c345 Mon Sep 17 00:00:00 2001 From: Lara Date: Fri, 26 Apr 2024 14:24:24 +0200 Subject: [PATCH] chao pescao --- gatewayservice/gateway-service.test.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gatewayservice/gateway-service.test.js b/gatewayservice/gateway-service.test.js index 3a08129..c3e55c5 100644 --- a/gatewayservice/gateway-service.test.js +++ b/gatewayservice/gateway-service.test.js @@ -49,17 +49,6 @@ describe('Gateway Service', () => { expect(response.status).toBe(500); expect(response.body).toEqual({ error: errorMessage }); }); - - // Test /adduser endpoint - it('deberia añadir usuario correctamente', async () => { - const response = await request(app) - .post('/adduser') - .send({ username: 'newuser', password: 'newpassword' }); - - // Verificamos que la respuesta tenga un código de estado 200 y un ID de usuario - expect(response.statusCode).toBe(200); - expect(response.body.userId).toBe('mockedUserId'); - }); // Probamos con una pregunta errónea it('debería devolver error con esa pregunta', async () => {