Make port a constant

This commit is contained in:
Girish Ramakrishnan
2019-07-25 15:43:51 -07:00
parent b03bf87b7d
commit 12eae1eff2
25 changed files with 45 additions and 32 deletions

View File

@@ -7,6 +7,7 @@
var async = require('async'),
config = require('../../config.js'),
constants = require('../../constants.js'),
database = require('../../database.js'),
expect = require('expect.js'),
nock = require('nock'),
@@ -17,7 +18,7 @@ var async = require('async'),
superagent = require('superagent'),
server = require('../../server.js');
var SERVER_URL = 'http://localhost:' + config.get('port');
var SERVER_URL = 'http://localhost:' + constants.PORT;
var USERNAME = 'superadmin', PASSWORD = 'Foobar?1337', EMAIL ='silly@me.com';
var AUTHORIZED_KEYS_FILE = path.join(config.baseDir(), 'authorized_keys');