Skip to content

Commit

Permalink
fix win path
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuany committed Oct 30, 2024
1 parent ddf51f8 commit 8bc6e16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion __test__/check_dependencies/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ test("Test error syntax code", () => {
expect(normalizedPaths).toMatchSnapshot();

for (const file of response.invalidSyntaxFiles) {
expect(file.replace(cwd, "")).toMatchSnapshot();
expect(winPath(file.replace(cwd, ""))).toMatchSnapshot();
}
});

function winPath(path: string) {
return path.replace(/\\/g, "/");
}

0 comments on commit 8bc6e16

Please sign in to comment.