Skip to content

Commit 7f7326f

Browse files
committed
test: fix assertSnapshotwhen path contains a quote
1 parent a2d720e commit 7f7326f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common/assertSnapshot.js

Lines changed: 1 addition & 1 deletion
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('\\\'', "'").replaceAll(path.resolve(__dirname, '../..').replaceAll('\'', '\\\''), '');
28+
return str.replaceAll('\\\'', "'").replaceAll(path.resolve(__dirname, '../..'), '');
2929
}
3030

3131
function transform(...args) {

0 commit comments

Comments
 (0)