mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00: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:
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
Block a user