diff --git a/src/__tests__/__snapshots__/atom1.spec.ts.snap b/src/__tests__/__snapshots__/atom1.spec.ts.snap
index 0892c4f..1123c62 100644
--- a/src/__tests__/__snapshots__/atom1.spec.ts.snap
+++ b/src/__tests__/__snapshots__/atom1.spec.ts.snap
@@ -54,5 +54,14 @@ exports[`atom 1.0 should generate a valid feed 1`] = `
2013-07-10T23:00:00.000Z
+
+
+ https://example.com/hello-world-2
+
+
+ 2013-07-13T22:00:00.000Z
+
+ 2013-07-10T23:00:00.000Z
+
"
`;
diff --git a/src/__tests__/__snapshots__/json.spec.ts.snap b/src/__tests__/__snapshots__/json.spec.ts.snap
index b6f5327..68c70fc 100644
--- a/src/__tests__/__snapshots__/json.spec.ts.snap
+++ b/src/__tests__/__snapshots__/json.spec.ts.snap
@@ -37,6 +37,14 @@ exports[`json 1 should generate a valid feed 1`] = `
\\"about\\": \\"just a second item extension example\\",
\\"dummy1\\": \\"example\\"
}
+ },
+ {
+ \\"id\\": \\"https://example.com/hello-world-2\\",
+ \\"url\\": \\"https://example.com/hello-world-2\\",
+ \\"title\\": \\"Hello World 2\\",
+ \\"summary\\": \\"This is another article about Hello World.\\",
+ \\"date_modified\\": \\"2013-07-13T22:00:00.000Z\\",
+ \\"date_published\\": \\"2013-07-10T23:00:00.000Z\\"
}
]
}"
diff --git a/src/__tests__/__snapshots__/rss2.spec.ts.snap b/src/__tests__/__snapshots__/rss2.spec.ts.snap
index c7af68f..5142341 100644
--- a/src/__tests__/__snapshots__/rss2.spec.ts.snap
+++ b/src/__tests__/__snapshots__/rss2.spec.ts.snap
@@ -31,6 +31,13 @@ exports[`rss 2.0 should generate a valid feed 1`] = `
+ -
+
+ https://example.com/hello-world-2
+ 58f618d7a56f2f745291a473
+ Sat, 13 Jul 2013 22:00:00 GMT
+
+
"
`;
diff --git a/src/__tests__/setup.ts b/src/__tests__/setup.ts
index 575c53a..cae002a 100644
--- a/src/__tests__/setup.ts
+++ b/src/__tests__/setup.ts
@@ -80,6 +80,17 @@ sampleFeed.addItem({
published
});
+sampleFeed.addItem({
+ title: "Hello World 2",
+ id: "https://example.com/hello-world-2",
+ link: "https://example.com/hello-world-2",
+ guid: "58f618d7a56f2f745291a473",
+ guidIsPermaLink: false,
+ description: "This is another article about Hello World.",
+ date: new Date("Sat, 13 Jul 2013 22:00:00 GMT"),
+ published
+});
+
sampleFeed.addExtension({
name: "_example_extension",
objects: {
diff --git a/src/types/index.ts b/src/types/index.ts
index 0363090..62281fd 100644
--- a/src/types/index.ts
+++ b/src/types/index.ts
@@ -35,7 +35,7 @@ interface FeedOptions {
language?: string;
feed?: string;
- feedLinks: any;
+ feedLinks?: any;
hub?: string;
author?: Author;
@@ -56,5 +56,5 @@ interface Feed {
interface Extension {
name: string;
- objects: string;
+ objects: { [key: string]: string };
}