Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into highest-priority-…
Browse files Browse the repository at this point in the history
…for-system-variables

# Conflicts:
#	test/index.test.js
  • Loading branch information
tobias-trozowski committed Nov 12, 2020
2 parents eb529d3 + 61925bc commit 45a48d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ function runTests (Obj, name) {
expect(envTest({ path: envSystemvars, systemvars: true })['process.env.PATH2'] !== '""').toEqual(true)
})

it('Should give the highest priority for the system variables', () => {
test('Should give the highest priority for the system variables', () => {
process.env.TEST = 'production'
const test = envTest({ safe: true, systemvars: true, defaults: true })
test['process.env.TEST'].should.equal('"production"')
test['process.env.TEST2'].should.equal('"hidefault"')
expect(test['process.env.TEST']).toEqual('"production"')
expect(test['process.env.TEST2']).toEqual('"hidefault"')
delete process.env.TEST
})
})
Expand Down

0 comments on commit 45a48d8

Please sign in to comment.