Skip to content

Commit

Permalink
Merge pull request #2 from shadowgate15/add-tests
Browse files Browse the repository at this point in the history
test: variables defined in other variables
  • Loading branch information
niftylettuce authored Jul 20, 2020
2 parents bbe6d4f + 1678fc6 commit a4f7fdf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ test('is function', (t) => {
test('returns object', (t) => {
t.true(typeof env() === 'object');
});

test('variables defined in other variables', (t) => {
process.env.JUNGLE = 'test_{{PANTHER}}';
process.env.PANTHER = 'panther_{{NODE_ENV}}';
t.is(env().JUNGLE, 'test_panther_test');
});

0 comments on commit a4f7fdf

Please sign in to comment.