Skip to content

Commit

Permalink
Merge pull request #809 from motdotla/additional-tests
Browse files Browse the repository at this point in the history
add test showing .env.vault decryption stil works with multi-files to…
  • Loading branch information
motdotla authored Feb 12, 2024
2 parents 6581b54 + 5057a81 commit 91bb2d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test-config-vault.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ t.test('returns parsed object (set path as array)', ct => {
ct.end()
})

t.test('returns parsed object (set path as mulit-array)', ct => {
ct.plan(1)

const env = dotenv.config({ path: ['tests/.env.local', 'tests/.env'] })
ct.same(env.parsed, { ALPHA: 'zeta' })

ct.end()
})

t.test('returns parsed object (set path as array with .vault extension)', ct => {
ct.plan(1)

Expand Down

0 comments on commit 91bb2d8

Please sign in to comment.