Skip to content

Commit

Permalink
Merge pull request #124 from galenandrew/falsePositiveTest
Browse files Browse the repository at this point in the history
Fix false-positive test due to case-sensitive process.env variables
  • Loading branch information
maxbeatty committed May 21, 2016
2 parents ea79aba + 06bc82c commit b74ff4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ describe('dotenv', function () {
})

it('does not write over keys already in process.env', function (done) {
process.env.TEST = 'test'
process.env.test = 'test'
// 'val' returned as value in `beforeEach`. should keep this 'test'
dotenv.config()

process.env.TEST.should.eql('test')
process.env.test.should.eql('test')
done()
})

Expand Down

0 comments on commit b74ff4b

Please sign in to comment.