From c799b3d062ba0e639bfb70baa02bd7d039408fea Mon Sep 17 00:00:00 2001 From: Mister-Mario Date: Sun, 28 Apr 2024 00:57:50 +0200 Subject: [PATCH] Removed wrong test --- gatewayservice/gateway-service.test.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/gatewayservice/gateway-service.test.js b/gatewayservice/gateway-service.test.js index 1592da0..ed156e8 100644 --- a/gatewayservice/gateway-service.test.js +++ b/gatewayservice/gateway-service.test.js @@ -258,23 +258,4 @@ describe('Gateway Service without mocked micro services', () => { expect(error.response.data.error).toBe('Invalid username or password'); } }); - - it('should not forward any url and give 500', async () => { - const urls = ['/adduser', '/forgetPassword', '/changePassword', '/questions', - '/questions/es/1/CAPITAL', '/questions/es/1', '/questions/es', - '/record', '/record/ranking/top10', '/record/ranking/user', - '/record/user'] - urls.forEach(async (url) => { - try{ - await request(app) - .post(url) - .send({ username: 'testuser', password: 'testpassword' }); - - } catch(error){ - expect(error.response.status).toBe(500); - expect(error.response.data.error).toBe('Internal server error'); - } - }) - - }) });