We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b175ce commit 8c3e19eCopy full SHA for 8c3e19e
test/common/assertSnapshot.js
@@ -6,14 +6,14 @@ const assert = require('node:assert/strict');
6
7
8
const stackFramesRegexp = /(\s+)((.+?)\s+\()?(?:\(?(.+?):(\d+)(?::(\d+))?)\)?(\s+\{)?(\n|$)/g;
9
-const windowNewlineRegexp = /\r\n/g;
+const windowNewlineRegexp = /\r/g;
10
11
function replaceStackTrace(str) {
12
return str.replace(stackFramesRegexp, '$1*$7\n');
13
}
14
15
function replaceWindowsLineEndings(str) {
16
- return str.replace(windowNewlineRegexp, '\n');
+ return str.replace(windowNewlineRegexp, '');
17
18
19
function transform(...args) {
0 commit comments