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(
25432543 // Tracing class respects inspect depth.
25442544 try {
25452545 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+ ) ;
25482553 } catch ( err ) {
25492554 if ( err . code !== 'ERR_TRACE_EVENTS_UNAVAILABLE' )
25502555 throw err ;
You can’t perform that action at this time.
0 commit comments