Skip to content

Commit

Permalink
test: fix assertSnapshot when path contains a quote
Browse files Browse the repository at this point in the history
PR-URL: nodejs#55087
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
  • Loading branch information
aduh95 authored Sep 25, 2024
1 parent 18800da commit bdddc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/assertSnapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function replaceWindowsPaths(str) {
}

function replaceFullPaths(str) {
return str.replaceAll(path.resolve(__dirname, '../..'), '');
return str.replaceAll('\\\'', "'").replaceAll(path.resolve(__dirname, '../..'), '');
}

function transform(...args) {
Expand Down

0 comments on commit bdddc04

Please sign in to comment.