mirror of https://github.com/nodejs/node.git
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>pull/54468/head
parent
18800da280
commit
bdddc04dff
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue