From dcd62496f20ff6b4077c622e2eb2f4f816f1ed9b Mon Sep 17 00:00:00 2001 From: JonahIBM <51744616+JonahIBM@users.noreply.github.com> Date: Mon, 21 Oct 2019 11:22:26 +0100 Subject: [PATCH] Application config mqtt port consitencies Changed the env port from 1234 to 8883 --- package.json | 6 +++--- test/ApplicationConfig.spec.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 504986b..d742016 100644 --- a/package.json +++ b/package.json @@ -32,11 +32,11 @@ "@babel/core": "7.4.4", "@babel/preset-env": "7.4.4", "@babel/register": "7.4.4", - "@cloudant/cloudant": "2.1.0", + "@cloudant/cloudant": "^2.1.0", "@istanbuljs/nyc-config-babel": "^2.1.1", "babel-plugin-istanbul": "^5.1.4", - "chai": "4.2.0", - "chai-as-promised": "7.1.1", + "chai": "^4.2.0", + "chai-as-promised": "^7.1.1", "coveralls": "3.0.3", "mocha": "6.1.4", "mocha-steps": "^1.3.0", diff --git a/test/ApplicationConfig.spec.js b/test/ApplicationConfig.spec.js index 187e980..7afab0c 100644 --- a/test/ApplicationConfig.spec.js +++ b/test/ApplicationConfig.spec.js @@ -82,9 +82,9 @@ describe('WIoTP Application Configuration', () => { }); it('Load port as a string with environment variables', () => { - process.env['WIOTP_OPTIONS_MQTT_PORT'] = '1234'; + process.env['WIOTP_OPTIONS_MQTT_PORT'] = '8883'; let config = ApplicationConfig.parseEnvVars(); - expect(config.options.mqtt.port).to.equal(1234); + expect(config.options.mqtt.port).to.equal(8883); }); it('Incorrect logLevel in config file throws error', () => {