[ci] format

This commit is contained in:
FredKSchott 2022-07-18 22:02:35 +00:00 committed by fredkbot
parent 57e529e4c1
commit 39c864773b
2 changed files with 7 additions and 5 deletions

View file

@ -86,7 +86,7 @@ export default async function getRSS(rssOptions: RSSOptions) {
if (isGlobResult(items)) {
items = await mapGlobResult(items);
}
return {
body: await generateRSS({
rssOptions,

View file

@ -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({