From cc40e6636c8ba7fdd7ee9998f8274d8bd93479f8 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 4 Nov 2023 22:57:37 -0300 Subject: [PATCH] Fix integration tests --- browser-domain/src/tests/integration/flights.spec.js | 4 ++-- screen-domain/src/tests/integration/flights.spec.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/browser-domain/src/tests/integration/flights.spec.js b/browser-domain/src/tests/integration/flights.spec.js index c9b21c1..f976122 100644 --- a/browser-domain/src/tests/integration/flights.spec.js +++ b/browser-domain/src/tests/integration/flights.spec.js @@ -1,5 +1,5 @@ const request = require('supertest'); -const app = 'http://127.0.0.1:5000' +const app = process.env.REACT_APP_ENDPOINT ? process.env.REACT_APP_ENDPOINT : 'http://127.0.0.1:5001' const authCredentials = { email: 'info@lufthansa.com', @@ -74,4 +74,4 @@ describe('Flight API Endpoints', () => { expect(response.body).toBeInstanceOf(Array); expect(response.body[0].id).toBe(createdFlightId) }); -}); \ No newline at end of file +}); diff --git a/screen-domain/src/tests/integration/flights.spec.js b/screen-domain/src/tests/integration/flights.spec.js index c9b21c1..f976122 100644 --- a/screen-domain/src/tests/integration/flights.spec.js +++ b/screen-domain/src/tests/integration/flights.spec.js @@ -1,5 +1,5 @@ const request = require('supertest'); -const app = 'http://127.0.0.1:5000' +const app = process.env.REACT_APP_ENDPOINT ? process.env.REACT_APP_ENDPOINT : 'http://127.0.0.1:5001' const authCredentials = { email: 'info@lufthansa.com', @@ -74,4 +74,4 @@ describe('Flight API Endpoints', () => { expect(response.body).toBeInstanceOf(Array); expect(response.body[0].id).toBe(createdFlightId) }); -}); \ No newline at end of file +});