Skip to content

Commit 8c3e19e

Browse files
committed
attempt again
1 parent 5b175ce commit 8c3e19e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/common/assertSnapshot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ const assert = require('node:assert/strict');
66

77

88
const stackFramesRegexp = /(\s+)((.+?)\s+\()?(?:\(?(.+?):(\d+)(?::(\d+))?)\)?(\s+\{)?(\n|$)/g;
9-
const windowNewlineRegexp = /\r\n/g;
9+
const windowNewlineRegexp = /\r/g;
1010

1111
function replaceStackTrace(str) {
1212
return str.replace(stackFramesRegexp, '$1*$7\n');
1313
}
1414

1515
function replaceWindowsLineEndings(str) {
16-
return str.replace(windowNewlineRegexp, '\n');
16+
return str.replace(windowNewlineRegexp, '');
1717
}
1818

1919
function transform(...args) {

0 commit comments

Comments
 (0)