| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 89f31a1 commit c972612
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,7 +89,9 @@ describe('node:test reporters', { concurrency: true }, () => { | |||
| 89 | 89 | ['--test', '--test-reporter', fixtures.fileURL('test-runner/custom_reporters/', filename), | |
| 90 | 90 | testFile]); | |
| 91 | 91 | assert.strictEqual(child.stderr.toString(), ''); | |
| 92 | - assert.strictEqual(child.stdout.toString(), `${filename} {"test:start":5,"test:pass":2,"test:fail":3,"test:plan":3,"test:diagnostic":7}`); | ||
| 92 | + const stdout = child.stdout.toString(); | ||
| 93 | + assert.match(stdout, /{"test:start":5,"test:pass":2,"test:fail":3,"test:plan":3,"test:diagnostic":\d+}$/); | ||
| 94 | + assert.strictEqual(stdout.slice(0, filename.length + 2), `${filename} {`); | ||
| 93 | 95 | }); | |
| 94 | 96 | }); | |
| 95 | 97 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments