[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)) {
|
if (isGlobResult(items)) {
|
||||||
items = await mapGlobResult(items);
|
items = await mapGlobResult(items);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
body: await generateRSS({
|
body: await generateRSS({
|
||||||
rssOptions,
|
rssOptions,
|
||||||
|
|
|
@ -130,15 +130,17 @@ describe('rss', () => {
|
||||||
await rss({
|
await rss({
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
items: [phpFeedItem, web1FeedItem]
|
items: [phpFeedItem, web1FeedItem],
|
||||||
});
|
});
|
||||||
|
|
||||||
chai.expect(false).to.equal(true, 'Should have errored');
|
chai.expect(false).to.equal(true, 'Should have errored');
|
||||||
} catch (err) {
|
} 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 () => {
|
it('should provide a good error message when a link is not provided', async () => {
|
||||||
try {
|
try {
|
||||||
await rss({
|
await rss({
|
||||||
|
|
Loading…
Reference in a new issue