From 6340d1284b930cd554077e1c44119974c6b405fc Mon Sep 17 00:00:00 2001 From: Stuart Colville Date: Tue, 10 May 2016 10:30:11 +0100 Subject: [PATCH] Fix + run server tests on travis --- .travis.yml | 1 + tests/server/TestConfig.js | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e6e9ad89e8..d0afff2d74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ env: matrix: - TASK=lint - TASK=unittest GUI=1 + - TASK=servertest cache: directories: - node_modules diff --git a/tests/server/TestConfig.js b/tests/server/TestConfig.js index d2195fa09d..53d037dfab 100644 --- a/tests/server/TestConfig.js +++ b/tests/server/TestConfig.js @@ -13,7 +13,7 @@ describe('Config', () => { const config = requireUncached('config'); const clientConfig = getClientConfig(config); assert.equal(config.get('apiHost'), 'https://addons.mozilla.org'); - assert.include(clientConfig.startLoginUrl, 'https://addons.mozilla.org'); + assert.equal(clientConfig.apiHost, 'https://addons.mozilla.org'); assert.equal(config.util.getEnv('NODE_ENV'), 'production'); }); @@ -22,7 +22,7 @@ describe('Config', () => { const config = requireUncached('config'); const clientConfig = getClientConfig(config); assert.equal(config.get('apiHost'), 'https://addons-dev.allizom.org'); - assert.include(clientConfig.startLoginUrl, 'https://addons-dev.allizom.org'); + assert.equal(clientConfig.apiHost, 'https://addons-dev.allizom.org'); assert.equal(config.util.getEnv('NODE_ENV'), 'dev'); }); @@ -31,7 +31,7 @@ describe('Config', () => { const config = requireUncached('config'); const clientConfig = getClientConfig(config); assert.equal(config.get('apiHost'), 'https://addons.allizom.org'); - assert.include(clientConfig.startLoginUrl, 'https://addons.allizom.org'); + assert.equal(clientConfig.apiHost, 'https://addons.allizom.org'); assert.equal(config.util.getEnv('NODE_ENV'), 'stage'); }); @@ -40,7 +40,7 @@ describe('Config', () => { const config = requireUncached('config'); const clientConfig = getClientConfig(config); assert.equal(config.get('apiHost'), 'https://addons-dev.allizom.org'); - assert.include(clientConfig.startLoginUrl, 'https://addons-dev.allizom.org'); + assert.equal(clientConfig.apiHost, 'https://addons-dev.allizom.org'); assert.equal(config.util.getEnv('NODE_ENV'), 'development'); }); });