Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Mar 11, 2024
1 parent 359d640 commit 805959b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
9 changes: 0 additions & 9 deletions public/sitemap.xml

This file was deleted.

7 changes: 1 addition & 6 deletions scripts/__tests__/prebuild.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ describe("robots.txt", () => {
});
it("should generate production robots.txt", () => {
const host = "localhost";
const robotsProd = [
"User-agent: *",
"Allow: /",
"",
`Sitemap: https://${host}/sitemap.xml`,
].join("\n");
const robotsProd = ["User-agent: *", "Allow: /"].join("\n");
generateRobotsTxt(true, host);
expect(fs.writeFileSync).toHaveBeenCalledWith(filePath, robotsProd);
});
Expand Down

0 comments on commit 805959b

Please sign in to comment.