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

Commit

Permalink
literally need to test on ci because vm is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsaylevine committed Jan 8, 2021
1 parent 7e21f73 commit 400b24f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/configurableDirs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ describe("clean up of NoN files", () => {
"next_shows_id",
"next_shows_params",
];
expect(fileList.includes(nextFunctions.join("\n"))).toBe(true);
// tested equality this way because of windows :)
const fileListFunctions = fileList.split("---")[0].trim().split("\n");
expect(fileListFunctions.join("").trim()).toEqual(nextFunctions.join("").trim());
const publishFiles = [
"404.html",
"_next",
Expand All @@ -124,6 +126,7 @@ describe("clean up of NoN files", () => {
"static",
"static.html",
];
expect(fileList.includes(publishFiles.join("\n"))).toBe(true);
const fileListPublish = fileList.split("---")[1].trim().split("\n");
expect(fileListPublish.join("")).toEqual(publishFiles.join(""));
});
});

0 comments on commit 400b24f

Please sign in to comment.