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 <luigipinca@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
  • Loading branch information
aduh95 authored and targos committed Oct 4, 2024
1 parent 93b215d commit 85f1187
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 85f1187

Please sign in to comment.