From 7ede37039a6d58ed9affe16a1c24a96d2dd42361 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sat, 27 Jul 2019 01:30:08 +0200 Subject: [PATCH] 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 --- seasoned_api/test/system/asADeveloperIWantTheServerToStart.js | 4 ++-- seasoned_api/test/unit/tmdb/testConvertTmdbToMovie.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/seasoned_api/test/system/asADeveloperIWantTheServerToStart.js b/seasoned_api/test/system/asADeveloperIWantTheServerToStart.js index 1c317bd..1544b94 100644 --- a/seasoned_api/test/system/asADeveloperIWantTheServerToStart.js +++ b/seasoned_api/test/system/asADeveloperIWantTheServerToStart.js @@ -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(() => diff --git a/seasoned_api/test/unit/tmdb/testConvertTmdbToMovie.js b/seasoned_api/test/unit/tmdb/testConvertTmdbToMovie.js index 64c2e4f..cf8f3ba 100644 --- a/seasoned_api/test/unit/tmdb/testConvertTmdbToMovie.js +++ b/seasoned_api/test/unit/tmdb/testConvertTmdbToMovie.js @@ -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);