Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e90cec2

Browse filesBrowse files
legendecasaduh95
authored andcommitted
test: restraint version replacement pattern in snapshots
PR-URL: #61748 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent a727054 commit e90cec2
Copy full SHA for e90cec2

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/common/assertSnapshot.js‎

Copy file name to clipboardExpand all lines: test/common/assertSnapshot.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const windowNewlineRegexp = /\r/g;
1414
// placeholder. This could commonly present in an unhandled exception
1515
// output.
1616
function replaceNodeVersion(str) {
17-
return str.replaceAll(process.version, '<node-version>');
17+
return str.replaceAll(`Node.js ${process.version}`, 'Node.js <node-version>');
1818
}
1919

2020
function replaceStackTrace(str, replacement = '$1*$7$8\n') {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.