mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: fix assertSnapshot when path contains a quote
PR-URL: https://github.com/nodejs/node/pull/55087 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
1 parent
18800da280
commit
bdddc04dff
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user