File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2543,8 +2543,13 @@ assert.strictEqual(
2543
2543
// Tracing class respects inspect depth.
2544
2544
try {
2545
2545
const trace = require ( 'trace_events' ) . createTracing ( { categories : [ 'fo' ] } ) ;
2546
- const actual = util . inspect ( { trace } , { depth : 0 } ) ;
2547
- assert . strictEqual ( actual , '{ trace: [Tracing] }' ) ;
2546
+ const actualDepth0 = util . inspect ( { trace } , { depth : 0 } ) ;
2547
+ 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
+ ) ;
2548
2553
} catch ( err ) {
2549
2554
if ( err . code !== 'ERR_TRACE_EVENTS_UNAVAILABLE' )
2550
2555
throw err ;
You can’t perform that action at this time.
0 commit comments