We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 941a91d commit 93707c4Copy full SHA for 93707c4
test/parallel/test-util-inspect.js
@@ -2543,8 +2543,13 @@ assert.strictEqual(
2543
// Tracing class respects inspect depth.
2544
try {
2545
const trace = require('trace_events').createTracing({ categories: ['fo'] });
2546
- const actual = util.inspect({ trace }, { depth: 0 });
2547
- assert.strictEqual(actual, '{ trace: [Tracing] }');
+ const actualDepth0 = util.inspect({ trace }, { depth: 0 });
+ assert.strictEqual(actualDepth0, '{ trace: [Tracing] }');
2548
+ const actualDepth1 = util.inspect({ trace }, { depth: 1 });
2549
+ assert.strictEqual(
2550
+ actualDepth1,
2551
+ "{ trace: Tracing { enabled: false, categories: 'fo' } }"
2552
+ );
2553
} catch (err) {
2554
if (err.code !== 'ERR_TRACE_EVENTS_UNAVAILABLE')
2555
throw err;
0 commit comments