GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: strip color chars in `test-runner-run` · nodejs/node@d2ec961

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-runner-run.mjs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-runner-run.mjs‎

Copy file name to clipboardExpand all lines: test/parallel/test-runner-run.mjs
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { join } from 'node:path';
44
import { describe, it, run } from 'node:test';
55
import { dot, spec, tap } from 'node:test/reporters';
66
import assert from 'node:assert';
7+
import util from 'node:util';
78

89
const testFixtures = fixtures.path('test-runner');
910

@@ -76,10 +77,10 @@ describe('require(\'node:test\').run', { concurrency: true }, () => {
7677
const result = await run({
7778
files: [join(testFixtures, 'default-behavior/test/random.cjs')]
7879
}).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');
8384
});
8485

8586
describe('should be piped with spec reporter', () => {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.