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 +});