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
+2 -1
View File
@@ -7,12 +7,13 @@
'use strict';
var config = require('../config.js'),
constants = require('../constants.js'),
database = require('../database.js'),
expect = require('expect.js'),
superagent = require('superagent'),
server = require('../server.js');
var SERVER_URL = 'http://localhost:' + config.get('port');
var SERVER_URL = 'http://localhost:' + constants.PORT;
var DOMAIN = 'example-server-test.com';
function cleanup(done) {