Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott authored and astrobot-houston committed Jul 18, 2022
1 parent 57e529e commit 39c8647
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/astro-rss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default async function getRSS(rssOptions: RSSOptions) {
if (isGlobResult(items)) {
items = await mapGlobResult(items);
}

return {
body: await generateRSS({
rssOptions,
Expand Down
10 changes: 6 additions & 4 deletions packages/astro-rss/test/rss.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 39c8647

Please sign in to comment.