Skip to content

Commit d68dfa9

Browse files
ZYSzystargos
authored andcommitted
test: console.table when null in data
PR-URL: #22974 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: John-David Dalton <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent f38eff2 commit d68dfa9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎test/parallel/test-console-table.js‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ test([Symbol(), 5, [10]], `
5454
└─────────┴────┴──────────┘
5555
`);
5656

57+
test([null, 5], `
58+
┌─────────┬────────┐
59+
│ (index) │ Values │
60+
├─────────┼────────┤
61+
│ 0 │ null │
62+
│ 1 │ 5 │
63+
└─────────┴────────┘
64+
`);
65+
5766
test([undefined, 5], `
5867
┌─────────┬───────────┐
5968
│ (index) │ Values │

0 commit comments

Comments
 (0)