Skip to content

Commit

Permalink
Merge pull request #480 from undefined-moe/windows
Browse files Browse the repository at this point in the history
tests: fix path separator on windows
  • Loading branch information
5saviahv authored May 22, 2024
2 parents 52facfc + 24547e3 commit 3b154d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ describe("utils - sanitizing functions :", () => {
{ file: "./../file", result: "file" },
{ file: "../../file", result: "file" },
{ file: "../../file1/../file2", result: "file2" },
{ file: "../subfolder/file2", result: "subfolder/file2" },
{ file: "../subfolder2/file2", result: "subfolder2/file2" },
{ file: "../subfolder/file2", result: "subfolder/file2" },
{ file: "../../subfolder2/file2", result: "subfolder2/file2" }
{ file: "../subfolder/file2", result: `subfolder${pth.sep}file2` },
{ file: "../subfolder2/file2", result: `subfolder2${pth.sep}file2` },
{ file: "../subfolder/file2", result: `subfolder${pth.sep}file2` },
{ file: "../../subfolder2/file2", result: `subfolder2${pth.sep}file2` }
];

for (let test of tests) {
Expand Down

0 comments on commit 3b154d2

Please sign in to comment.