| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,7 @@ import { join } from 'node:path'; | |||
| 4 | 4 | import { describe, it, run } from 'node:test'; | |
| 5 | 5 | import { dot, spec, tap } from 'node:test/reporters'; | |
| 6 | 6 | import assert from 'node:assert'; | |
| 7 | + import util from 'node:util'; | ||
| 7 | 8 | ||
| 8 | 9 | const testFixtures = fixtures.path('test-runner'); | |
| 9 | 10 | ||
@@ -76,10 +77,10 @@ describe('require(\'node:test\').run', { concurrency: true }, () => { | |||
| 76 | 77 | const result = await run({ | |
| 77 | 78 | files: [join(testFixtures, 'default-behavior/test/random.cjs')] | |
| 78 | 79 | }).compose(dot).toArray(); | |
| 79 | - assert.deepStrictEqual(result, [ | ||
| 80 | - '.', | ||
| 81 | - '\n', | ||
| 82 | - ]); | ||
| 80 | + | ||
| 81 | + assert.strictEqual(result.length, 2); | ||
| 82 | + assert.strictEqual(util.stripVTControlCharacters(result[0]), '.'); | ||
| 83 | + assert.strictEqual(result[1], '\n'); | ||
| 83 | 84 | }); | |
| 84 | 85 | ||
| 85 | 86 | describe('should be piped with spec reporter', () => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments