Skip to content

Commit 85f1187

Browse files
aduh95targos
authored andcommitted
test: fix assertSnapshot when path contains a quote
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>
1 parent 93b215d commit 85f1187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common/assertSnapshot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function replaceWindowsPaths(str) {
2525
}
2626

2727
function replaceFullPaths(str) {
28-
return str.replaceAll(path.resolve(__dirname, '../..'), '');
28+
return str.replaceAll('\\\'', "'").replaceAll(path.resolve(__dirname, '../..'), '');
2929
}
3030

3131
function transform(...args) {

0 commit comments

Comments
 (0)