Skip to content

Commit

Permalink
demonstrate test showing no variables
Browse files Browse the repository at this point in the history
  • Loading branch information
motdotla committed Feb 11, 2024
1 parent ec65056 commit 95337c4
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 95337c4

Please sign in to comment.