info-success-response is now a list so need this reflected in this test also. Changed the port we test for to whats in our config/test.jsono

This commit is contained in:
2019-07-27 01:30:08 +02:00
parent 8e23ae5a27
commit 7ede37039a
2 changed files with 3 additions and 3 deletions

View File

@@ -5,8 +5,8 @@ describe('As a developer I want the server to start', () => {
beforeEach(() =>
this.server = require('src/webserver/server'));
it('should listen on port 31459', (done) => {
net.createConnection(31459, done);
it('should listen on port 31400', (done) => {
net.createConnection(31400, done);
});
afterEach(() =>

View File

@@ -3,7 +3,7 @@ const convertTmdbToMovie = require('src/tmdb/convertTmdbToMovie');
const bladeRunnerQuerySuccess = require('test/fixtures/blade_runner_2049-info-success-response.json')
describe('Convert tmdb movieInfo to movie', () => {
beforeEach(() => this.bladeRunnerTmdbMovie = bladeRunnerQuerySuccess);
beforeEach(() => [this.bladeRunnerTmdbMovie] = bladeRunnerQuerySuccess);
it('should translate the tmdb release date to movie year', () => {
const bladeRunner = convertTmdbToMovie(this.bladeRunnerTmdbMovie);