Skip to content

Commit a791032

Browse files
committed
add test
1 parent fa67c02 commit a791032

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/test-config-vault.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ t.test('does not log by default', ct => {
4343
ct.ok(logStub.notCalled)
4444
})
4545

46-
t.test('does log if quiet flag passed true', ct => {
46+
t.test('does not log if quiet flag passed true', ct => {
4747
ct.plan(1)
4848

4949
logStub = sinon.stub(console, 'log')
@@ -61,6 +61,15 @@ t.test('does log if quiet flag false', ct => {
6161
ct.ok(logStub.called)
6262
})
6363

64+
t.test('does log if quiet flag present and undefined/null', ct => {
65+
ct.plan(1)
66+
67+
logStub = sinon.stub(console, 'log')
68+
69+
dotenv.config({ path: testPath, quiet: undefined })
70+
ct.ok(logStub.called)
71+
})
72+
6473
t.test('logs if debug set', ct => {
6574
ct.plan(1)
6675

0 commit comments

Comments
 (0)