From ec0a00abb6496c6b126c0a44e8f8cced10f18eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Baumg=C3=A4rtner?= Date: Thu, 9 Nov 2023 16:34:47 +0100 Subject: [PATCH] fix test --- src/test/suite/markupParser.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/suite/markupParser.test.ts b/src/test/suite/markupParser.test.ts index 7578cee..bdc5d15 100644 --- a/src/test/suite/markupParser.test.ts +++ b/src/test/suite/markupParser.test.ts @@ -70,11 +70,11 @@ suite("MarkupParser Tests", function () { let project_root_dir = PROJECT_ROOT_DIR; if (process.platform === 'win32') { - project_root_dir = `${project_root_dir.split(path.sep).join(path.posix.sep).replace(':', '%3A')}`; + project_root_dir = `/${project_root_dir.split(path.sep).join(path.posix.sep).replace(':', '%3A')}`; } const expectedContent = prettier.format( - fs.readFileSync(fixtureFile, FILE_ENCODING).replace(new RegExp(TEST_EXTENSION_PATH_PLACEHOLDER, 'g'), `${TEST_EXTENSION_PATH_PLACEHOLDER_REPLACE_PREFIX}/${project_root_dir}`), + fs.readFileSync(fixtureFile, FILE_ENCODING).replace(new RegExp(TEST_EXTENSION_PATH_PLACEHOLDER, 'g'), `${TEST_EXTENSION_PATH_PLACEHOLDER_REPLACE_PREFIX}${project_root_dir}`), { parser: "html" } );