diff options
author | Osmond van Hemert <osmond@vanhemert.nu> | 2018-11-08 20:53:56 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-11-15 04:26:56 +0100 |
commit | ed15b336dcc804106e0ea0338f52d47dd2b7b0b2 (patch) | |
tree | 0e774e77937b70b6cfa6a3f2577d203817c9535e | |
parent | f3b49cfa7b3c2887ca8147b3d47ce1834b3923bf (diff) | |
download | android-node-v8-ed15b336dcc804106e0ea0338f52d47dd2b7b0b2.tar.gz android-node-v8-ed15b336dcc804106e0ea0338f52d47dd2b7b0b2.tar.bz2 android-node-v8-ed15b336dcc804106e0ea0338f52d47dd2b7b0b2.zip |
test: deep object to table not covered
PR-URL: https://github.com/nodejs/node/pull/24257
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
-rw-r--r-- | test/parallel/test-console-table.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/parallel/test-console-table.js b/test/parallel/test-console-table.js index e5b56ced84..3a4d6fefbb 100644 --- a/test/parallel/test-console-table.js +++ b/test/parallel/test-console-table.js @@ -168,6 +168,14 @@ test({ a: { a: 1, b: 2, c: 3 } }, ` └─────────┴───┴───┴───┘ `); +test({ a: { a: { a: 1, b: 2, c: 3 } } }, ` +┌─────────┬──────────┐ +│ (index) │ a │ +├─────────┼──────────┤ +│ a │ [Object] │ +└─────────┴──────────┘ +`); + test({ a: [1, 2] }, ` ┌─────────┬───┬───┐ │ (index) │ 0 │ 1 │ |