MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

test/parallel/test-console-table.js:14–24  ·  view source on GitHub ↗
(data, only, expected)

Source from the content-addressed store, hash-verified

12}, removeListener: () => {} }, process.stderr, false);
13
14function test(data, only, expected) {
15 if (arguments.length === 2) {
16 expected = only;
17 only = undefined;
18 }
19 console.table(data, only);
20 assert.deepStrictEqual(
21 queue.shift().split('\n'),
22 expected.trimLeft().split('\n')
23 );
24}
25
26assert.throws(() => console.table([], false), {
27 code: 'ERR_INVALID_ARG_TYPE',

Callers 1

Calls 3

tableMethod · 0.45
splitMethod · 0.45
shiftMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…