From c50531f10be47445e7ec26af0ad2efd4944afa19 Mon Sep 17 00:00:00 2001 From: cheap-glitch Date: Fri, 19 Jun 2020 11:04:43 +0200 Subject: [PATCH] Fix lint errors --- test/sitemap.test.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/test/sitemap.test.js b/test/sitemap.test.js index 683de1c..84df161 100644 --- a/test/sitemap.test.js +++ b/test/sitemap.test.js @@ -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: [{ @@ -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; }); }); /**