Skip to content

Commit bdddc04

Browse files
authored
test: fix assertSnapshot when path contains a quote
PR-URL: #55087 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
1 parent 18800da commit bdddc04

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)