diff --git a/src/lib/config.js b/src/lib/config.js index e2c2efcee..1f44d699f 100644 --- a/src/lib/config.js +++ b/src/lib/config.js @@ -9,8 +9,8 @@ module.exports = { MONGODB_USER: RC.MONGODB.USER, MONGODB_PASSWORD: RC.MONGODB.PASSWORD, MONGODB_DATABASE: RC.MONGODB.DATABASE, - MONGODB_DEBUG: (RC.MONGODB.DEBUG === true || RC.MONGODB.DEBUG === 'true'), - MONGODB_DISABLED: (RC.MONGODB.DISABLED === true || RC.MONGODB.DISABLED === 'true'), + MONGODB_DEBUG: RC.MONGODB.DEBUG === true, + MONGODB_DISABLED: RC.MONGODB.DISABLED === true, AMOUNT: RC.AMOUNT, EXPIRES_TIMEOUT: RC.EXPIRES_TIMEOUT, ERROR_HANDLING: RC.ERROR_HANDLING, diff --git a/test/unit/lib/config.test.js b/test/unit/lib/config.test.js index 5ee651792..5fd3c685f 100644 --- a/test/unit/lib/config.test.js +++ b/test/unit/lib/config.test.js @@ -42,16 +42,5 @@ Test('Config should', configTest => { test.end() }) - configTest.test('evaluate MONGODB_DISABLED to a boolean if a string', async function (test) { - console.log(Defaults) - const Config = Proxyquire('../../../src/lib/config', { - '../../config/default.json': { ...Defaults, MONGODB: { DISABLED: 'true', DEBUG: 'true' } } - }) - - test.ok(Config.MONGODB_DISABLED === true) - test.ok(Config.MONGODB_DEBUG === true) - test.end() - }) - configTest.end() })