From dc26247e69d1ebc61c86b42c027f70da917202ce Mon Sep 17 00:00:00 2001 From: Osmond van Hemert Date: Thu, 8 Nov 2018 20:53:56 +0100 Subject: [PATCH] test: deep object to table not covered PR-URL: https://github.com/nodejs/node/pull/24257 Reviewed-By: Weijia Wang Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater --- test/parallel/test-console-table.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/parallel/test-console-table.js b/test/parallel/test-console-table.js index e5b56ced8435ea..3a4d6fefbbc8f1 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 │