| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 941a91d commit 93707c4
1 file 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; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments