[ci] format
This commit is contained in:
parent
57e529e4c1
commit
39c864773b
2 changed files with 7 additions and 5 deletions
|
@ -86,7 +86,7 @@ export default async function getRSS(rssOptions: RSSOptions) {
|
|||
if (isGlobResult(items)) {
|
||||
items = await mapGlobResult(items);
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
body: await generateRSS({
|
||||
rssOptions,
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue