From 24547e3f299e90537db83da7995bd17aad5ba131 Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 9 Apr 2024 22:13:59 +0800 Subject: [PATCH] tests: fix path separator on windows --- test/utils.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/utils.test.js b/test/utils.test.js index 5944d5b..5a60238 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -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) {