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 ef7aeba commit 46ddabc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
16 changes: 16 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.github
.DS_Store
.editorconfig
.gitignore
.gitmodules
.lgtm.yml
appveyor.yml
codecov.yml
.release
.travis.yml
.eslintrc.yaml
.eslintrc.json
.codeclimate.yml
test/
DEVELOP.md
.prettierrc.yml
11 changes: 3 additions & 8 deletions lib/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,14 @@ describe('config', () => {
process.env.NODE_DEBUG = ''
})

it(`loads session test config`, async () => {
const cfg = await Config.get('session', 'test')
assert.deepEqual(cfg, sessCfg)
})

it(`loads session test config syncronously`, () => {
const cfg = Config.getSync('session', 'test')
it(`loads http test config`, async () => {
const cfg = await Config.get('http', 'test')
assert.deepEqual(cfg, sessCfg)
})

it(`loads http test config syncronously`, () => {
const cfg = Config.getSync('http', 'test')
assert.deepEqual(cfg, httpCfg)
assert.deepEqual(cfg, sessCfg)
})

it(`detects NODE_DEBUG env`, async () => {
Expand Down

0 comments on commit 46ddabc

Please sign in to comment.