Skip to content

Commit

Permalink
test: Failing test for # handling in .env
Browse files Browse the repository at this point in the history
Reproduced the bug reported in #37
  • Loading branch information
rmg committed Mar 28, 2014
1 parent 9976e56 commit 7995101
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/envs-commented.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ var loadedFlat = envs.KeyValue(expected)
var dumpedFlat = envs.dumpEnv(loadedFlat)
assert.equal(dumpedEnv, expected)
assert.equal(dumpedFlat, expected)

var parsedHash = envs.KeyValue(
'#commented heading. \n' +
'key = "quoted#hash" \n' +
'key2 = stripped#comment \n'
)

assert.equal(parsedHash['key'], 'quoted#hash')
assert.equal(parsedHash['key2'], 'stripped')

0 comments on commit 7995101

Please sign in to comment.