From 39c864773bc44145dff969afc4a1d576ca5facd3 Mon Sep 17 00:00:00 2001 From: FredKSchott Date: Mon, 18 Jul 2022 22:02:35 +0000 Subject: [PATCH] [ci] format --- packages/astro-rss/src/index.ts | 2 +- packages/astro-rss/test/rss.test.js | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts index 9f55ee9f1..20d509f14 100644 --- a/packages/astro-rss/src/index.ts +++ b/packages/astro-rss/src/index.ts @@ -86,7 +86,7 @@ export default async function getRSS(rssOptions: RSSOptions) { if (isGlobResult(items)) { items = await mapGlobResult(items); } - + return { body: await generateRSS({ rssOptions, diff --git a/packages/astro-rss/test/rss.test.js b/packages/astro-rss/test/rss.test.js index f4dc0ba6e..08d56fa92 100644 --- a/packages/astro-rss/test/rss.test.js +++ b/packages/astro-rss/test/rss.test.js @@ -130,15 +130,17 @@ describe('rss', () => { await rss({ title, description, - items: [phpFeedItem, web1FeedItem] + items: [phpFeedItem, web1FeedItem], }); - + chai.expect(false).to.equal(true, 'Should have errored'); } catch (err) { - chai.expect(err.message).to.contain('[RSS] the "site" option is required, but no value was given.'); + chai + .expect(err.message) + .to.contain('[RSS] the "site" option is required, but no value was given.'); } }); - + it('should provide a good error message when a link is not provided', async () => { try { await rss({