I am using a particular set of URLs for connecting to services. They are there in the config.js file. Now while testing using mocha, I want to use a different set of urls. Is it possible to over-ride the urls configured in the js file from the test cases.This is how my config.js looks -
var servercfg = {
host: 'localhost',
port: '9010'
};
var enterprisesercfg = {
userserurl: 'http://localhost:9020',
accountserurl: 'http://localhost:9020',
creditcardserurl: 'http://localhost:9020'
};
var oauth2sercfg = {
url: 'http://localhost:9000/api/oauth2/verify'
};
module.exports={
servercfg,
enterprisesercfg,
oauth2sercfg
};