Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 400b24f

Browse files
committed
literally need to test on ci because vm is broken
1 parent 7e21f73 commit 400b24f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/configurableDirs.test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ describe("clean up of NoN files", () => {
115115
"next_shows_id",
116116
"next_shows_params",
117117
];
118-
expect(fileList.includes(nextFunctions.join("\n"))).toBe(true);
118+
// tested equality this way because of windows :)
119+
const fileListFunctions = fileList.split("---")[0].trim().split("\n");
120+
expect(fileListFunctions.join("").trim()).toEqual(nextFunctions.join("").trim());
119121
const publishFiles = [
120122
"404.html",
121123
"_next",
@@ -124,6 +126,7 @@ describe("clean up of NoN files", () => {
124126
"static",
125127
"static.html",
126128
];
127-
expect(fileList.includes(publishFiles.join("\n"))).toBe(true);
129+
const fileListPublish = fileList.split("---")[1].trim().split("\n");
130+
expect(fileListPublish.join("")).toEqual(publishFiles.join(""));
128131
});
129132
});

0 commit comments

Comments
 (0)