Skip to content

Commit

Permalink
Merge pull request #114 from motdotla/test2
Browse files Browse the repository at this point in the history
demonstrate test showing no variables
  • Loading branch information
motdotla authored Feb 11, 2024
2 parents ec65056 + 95337c4 commit 31d963c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,3 +496,16 @@ t.test('does not attempt to expand password if already existed in processEnv', c

ct.end()
})

t.test('does not expand dollar sign that are not variables', ct => {
const dotenv = {
parsed: {
NO_VARIABLES: '\\$.$+$-$$'
}
}
const parsed = dotenvExpand.expand(dotenv).parsed

ct.equal(parsed.NO_VARIABLES, '$.$+$-$$')

ct.end()
})

0 comments on commit 31d963c

Please sign in to comment.