summaryrefslogtreecommitdiff
path: root/packages/astro-rss/test/test-utils.js
diff options
context:
space:
mode:
authorGravatar bluwy <bjornlu.dev@gmail.com> 2024-10-10 21:28:25 +0800
committerGravatar bluwy <bjornlu.dev@gmail.com> 2024-10-10 21:28:25 +0800
commit9fc86e543a6e4d0c6d4c6acaf7502f00a11da270 (patch)
tree33d8508cf7a667d55a92475774e58510f5b68210 /packages/astro-rss/test/test-utils.js
parent15fa9babf31a9b8ab8fc8e611c931c178137e2f9 (diff)
parent582f12e1f6f99b54865a0b24d804ee0924f4ef55 (diff)
downloadastro-9fc86e543a6e4d0c6d4c6acaf7502f00a11da270.tar.gz
astro-9fc86e543a6e4d0c6d4c6acaf7502f00a11da270.tar.zst
astro-9fc86e543a6e4d0c6d4c6acaf7502f00a11da270.zip
Merge branch 'main' into next
Diffstat (limited to 'packages/astro-rss/test/test-utils.js')
-rw-r--r--packages/astro-rss/test/test-utils.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/astro-rss/test/test-utils.js b/packages/astro-rss/test/test-utils.js
index dcc57df21..d3ee8ca33 100644
--- a/packages/astro-rss/test/test-utils.js
+++ b/packages/astro-rss/test/test-utils.js
@@ -4,13 +4,16 @@ export const title = 'My RSS feed';
export const description = 'This sure is a nice RSS feed';
export const site = 'https://example.com';
-export const phpFeedItem = {
+export const phpFeedItemWithoutDate = {
link: '/php',
title: 'Remember PHP?',
- pubDate: '1994-05-03',
description:
'PHP is a general-purpose scripting language geared toward web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994.',
};
+export const phpFeedItem = {
+ ...phpFeedItemWithoutDate,
+ pubDate: '1994-05-03',
+};
export const phpFeedItemWithContent = {
...phpFeedItem,
content: `<h1>${phpFeedItem.title}</h1><p>${phpFeedItem.description}</p>`,