Skip to content

Commit 4ca858c

Browse files
committed
chore(test): fix config definitions test when run without tap
1 parent 9f57404 commit 4ca858c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/lib/utils/config/definitions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ t.test('color', t => {
375375
t.strictSame(flat, { color: false, logColor: false }, 'true when --no-color')
376376

377377
setTTY('stdout', false)
378+
setTTY('stderr', false)
379+
378380
obj.color = true
379381
definitions.color.flatten('color', obj, flat)
380382
t.strictSame(flat, { color: false, logColor: false }, 'no color when stdout not tty')
@@ -383,7 +385,6 @@ t.test('color', t => {
383385
t.strictSame(flat, { color: true, logColor: false }, '--color turns on color when stdout is tty')
384386
setTTY('stdout', false)
385387

386-
setTTY('stderr', false)
387388
obj.color = true
388389
definitions.color.flatten('color', obj, flat)
389390
t.strictSame(flat, { color: false, logColor: false }, 'no color when stderr not tty')

0 commit comments

Comments
 (0)