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: #55087
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
  • Loading branch information
aduh95 authored and marco-ippolito committed Nov 16, 2024
1 parent 08fa713 commit c3de1e2
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 c3de1e2

Please sign in to comment.