Skip to content

Commit 3347e36

Browse files
committed
chore: fix test and add more checks
1 parent 5278d0f commit 3347e36

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/pseudo-tty/test-os-guessHandleType.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ strictEqual(guessHandleType(55555), 'UNKNOWN', '55555 reported to be a tty, but
1313
strictEqual(guessHandleType(2 ** 31), 'INVALID', '2^31 reported to be a tty, but it is not');
1414
strictEqual(guessHandleType(1.1), 'INVALID', '1.1 reported to be a tty, but it is not');
1515
strictEqual(guessHandleType('1'), 'INVALID', '\'1\' reported to be a tty, but it is not');
16+
strictEqual(guessHandleType({}), 'INVALID', '{} reported to be a tty, but it is not');
17+
strictEqual(guessHandleType(() => {}), 'INVALID', '() => {} reported to be a tty, but it is not');

test/pseudo-tty/test-os-guessHandleType.out

Whitespace-only changes.

0 commit comments

Comments
 (0)