Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cheap-glitch committed Jun 19, 2020
1 parent b0c1622 commit c50531f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions test/sitemap.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,13 +651,6 @@ describe("single sitemap generation", () => {
});

it("throws an error if the asynchronously generated slugs are invalid", async () => {
return expect(Promise.resolve(generate({
baseURL: 'https://website.net',
routes: [{
path: '/user/:id',
meta: { sitemap: { slugs: async () => 5 } },
}]
}))).to.eventually.be.rejected;
return expect(Promise.resolve(generate({
baseURL: 'https://website.net',
routes: [{
Expand All @@ -675,13 +668,6 @@ describe("single sitemap generation", () => {
meta: { sitemap: { slugs: [{ title: 5 }] } },
}]
}))).to.eventually.be.rejected;
return expect(Promise.resolve(generate({
baseURL: 'https://website.net',
routes: [{
path: '/article/:title/:id',
meta: { sitemap: { slugs: [{ id: 5 }] } },
}]
}))).to.eventually.be.rejected;
});
});
/**
Expand Down

0 comments on commit c50531f

Please sign in to comment.