Skip to content

Commit 520e763

Browse files
committed
Add comment
1 parent 33ba2a1 commit 520e763

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/external-assertions/test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const snapshotStdout = (t, stdout) => {
88
const normalized = stdout
99
.replaceAll('\r', '')
1010
.replaceAll(/\/{3}/g, '//')
11-
.replaceAll('×', '✘')
11+
// Not sure how, but this Symbol may different on different system
12+
// https://github.com/nodejs/node/blob/dec0213c834607e7721ee250d8c46ef9cd112efe/lib/internal/test_runner/reporter/utils.js#L21
13+
.replaceAll('× ', '✘ ')
1214
.replaceAll(/(\b)at.*\n/g, '$1at ---\n');
1315

1416
t.snapshot(normalized);

0 commit comments

Comments
 (0)