diff --git a/gatewayservice/gateway-service.test.js b/gatewayservice/gateway-service.test.js index 4af52135..bd0ff582 100644 --- a/gatewayservice/gateway-service.test.js +++ b/gatewayservice/gateway-service.test.js @@ -106,16 +106,6 @@ describe('Gateway Service', () => { expect(response.body).toEqual({ userInfo: 'mockedUserInfo' }); }); - // Test /saveGameList endpoint - it('should forward saveGameList request to user service', async () => { - const response = await request(app) - .post('/saveGameList') - .send({ username: 'testuser', gameMode: 'classic', gameData: { points: 100, correctAnswers: 8, incorrectAnswers: 2, avgTime: 30 } }); - - expect(response.statusCode).toBe(200); - expect(response.body).toEqual({ message: 'Partida guardada exitosamente' }); - }); - // Test /stats endpoint it('should forward stats request to stats service', async () => { const response = await request(app).get("/stats").query({ user: 'testuser', gamemode: 'classic' }); @@ -124,15 +114,6 @@ describe('Gateway Service', () => { expect(response.body).toEqual({ stats: 'mockedStats' }); }); - // Test /saveGame endpoint - it('should forward saveGame request to stats service', async () => { - const response = await request(app) - .post('/saveGame') - .send({ username: 'testuser', gameMode: 'classic', gameData: { points: 100, correctAnswers: 8, incorrectAnswers: 2, avgTime: 30 } }); - - // Write your test assertions here - }); - // Test /ranking endpoint it('should forward ranking request to stats service', async () => { const response = await request(app).get("/ranking").query({ gamemode: 'classic', filterBy: 'all' });