Fix integration tests
This commit is contained in:
parent
157636898e
commit
cc40e6636c
browser-domain/src/tests/integration
screen-domain/src/tests/integration
|
@ -1,5 +1,5 @@
|
||||||
const request = require('supertest');
|
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 = {
|
const authCredentials = {
|
||||||
email: 'info@lufthansa.com',
|
email: 'info@lufthansa.com',
|
||||||
|
@ -74,4 +74,4 @@ describe('Flight API Endpoints', () => {
|
||||||
expect(response.body).toBeInstanceOf(Array);
|
expect(response.body).toBeInstanceOf(Array);
|
||||||
expect(response.body[0].id).toBe(createdFlightId)
|
expect(response.body[0].id).toBe(createdFlightId)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const request = require('supertest');
|
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 = {
|
const authCredentials = {
|
||||||
email: 'info@lufthansa.com',
|
email: 'info@lufthansa.com',
|
||||||
|
@ -74,4 +74,4 @@ describe('Flight API Endpoints', () => {
|
||||||
expect(response.body).toBeInstanceOf(Array);
|
expect(response.body).toBeInstanceOf(Array);
|
||||||
expect(response.body[0].id).toBe(createdFlightId)
|
expect(response.body[0].id).toBe(createdFlightId)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue