From e73c943a32bf383c585372b1ccd49d181b7f59ae Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 28 Feb 2024 14:42:34 -0800 Subject: [PATCH] session config, more --- lib/config.test.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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, -}