Skip to content

Commit

Permalink
session config, more
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Feb 28, 2024
1 parent 46ddabc commit e73c943
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -63,7 +63,9 @@ const mysqlTestCfg = {
decimalNumbers: true,
}

const sessCfg = {
const httpCfg = {
host: 'localhost',
port: 3000,
cookie: {
clearInvalid: true,
isHttpOnly: true,
Expand All @@ -76,8 +78,3 @@ const sessCfg = {
},
keepAlive: false,
}

const httpCfg = {
host: 'localhost',
port: 3000,
}

0 comments on commit e73c943

Please sign in to comment.