diff options
author | 2023-11-30 10:03:51 -0500 | |
---|---|---|
committer | 2023-11-30 10:03:51 -0500 | |
commit | fbf145af8a792ee7334be577fbdf0bba9782b4e7 (patch) | |
tree | a5212b8b8f12d734579db8a2bb90dd4c772cba44 /packages/astro-rss/test/rss.test.js | |
parent | ff8eadb95d34833baaf3ec7575bf4f293eae97da (diff) | |
parent | 05628aaa3c9a3702b59cbf3d0e99abf66df651df (diff) | |
download | astro-fbf145af8a792ee7334be577fbdf0bba9782b4e7.tar.gz astro-fbf145af8a792ee7334be577fbdf0bba9782b4e7.tar.zst astro-fbf145af8a792ee7334be577fbdf0bba9782b4e7.zip |
Merge pull request #9247 from withastro/next
Merge the `next` branch into `main` for the 4.0 release
Diffstat (limited to 'packages/astro-rss/test/rss.test.js')
-rw-r--r-- | packages/astro-rss/test/rss.test.js | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/packages/astro-rss/test/rss.test.js b/packages/astro-rss/test/rss.test.js index 5dfb48b32..cc7bff82b 100644 --- a/packages/astro-rss/test/rss.test.js +++ b/packages/astro-rss/test/rss.test.js @@ -156,36 +156,12 @@ describe('getRssString', () => { chai.expect(str).to.contain(customData); }); - it('should filter out entries marked as `draft`', async () => { - const str = await getRssString({ - title, - description, - items: [phpFeedItem, { ...web1FeedItem, draft: true }], - site, - }); - - chai.expect(str).xml.to.equal(validXmlWithoutWeb1FeedResult); - }); - - it('should respect drafts option', async () => { - const str = await getRssString({ - title, - description, - items: [phpFeedItem, { ...web1FeedItem, draft: true }], - site, - drafts: true, - }); - - chai.expect(str).xml.to.equal(validXmlResult); - }); - it('should not append trailing slash to URLs with the given option', async () => { const str = await getRssString({ title, description, - items: [phpFeedItem, { ...web1FeedItem, draft: true }], + items: [phpFeedItem], site, - drafts: true, trailingSlash: false, }); |