| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a715c25 commit e624bb5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2511,8 +2511,13 @@ assert.strictEqual( | |||
| 2511 | 2511 | // Tracing class respects inspect depth. | |
| 2512 | 2512 | try { | |
| 2513 | 2513 | const trace = require('trace_events').createTracing({ categories: ['fo'] }); | |
| 2514 | - const actual = util.inspect({ trace }, { depth: 0 }); | ||
| 2515 | - assert.strictEqual(actual, '{ trace: [Tracing] }'); | ||
| 2514 | + const actualDepth0 = util.inspect({ trace }, { depth: 0 }); | ||
| 2515 | + assert.strictEqual(actualDepth0, '{ trace: [Tracing] }'); | ||
| 2516 | + const actualDepth1 = util.inspect({ trace }, { depth: 1 }); | ||
| 2517 | + assert.strictEqual( | ||
| 2518 | + actualDepth1, | ||
| 2519 | + "{ trace: Tracing { enabled: false, categories: 'fo' } }" | ||
| 2520 | + ); | ||
| 2516 | 2521 | } catch (err) { | |
| 2517 | 2522 | if (err.code !== 'ERR_TRACE_EVENTS_UNAVAILABLE') | |
| 2518 | 2523 | throw err; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments