diff --git a/lib/config.test.js b/lib/config.test.js index e762cb9..9e56a9d 100644 --- a/lib/config.test.js +++ b/lib/config.test.js @@ -29,12 +29,12 @@ describe('config', () => { it(`loads http test config`, async () => { const cfg = await Config.get('http', 'test') - assert.deepEqual(cfg, sessCfg) + assert.deepEqual(cfg, httpCfg) }) it(`loads http test config syncronously`, () => { const cfg = Config.getSync('http', 'test') - assert.deepEqual(cfg, sessCfg) + assert.deepEqual(cfg, httpCfg) }) it(`detects NODE_DEBUG env`, async () => { @@ -63,7 +63,9 @@ const mysqlTestCfg = { decimalNumbers: true, } -const sessCfg = { +const httpCfg = { + host: 'localhost', + port: 3000, cookie: { clearInvalid: true, isHttpOnly: true, @@ -76,8 +78,3 @@ const sessCfg = { }, keepAlive: false, } - -const httpCfg = { - host: 'localhost', - port: 3000, -}