Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
denco committed Nov 9, 2023
1 parent 55f3f28 commit ec0a00a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/suite/markupParser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
);

Expand Down

0 comments on commit ec0a00a

Please sign in to comment.