aboutsummaryrefslogtreecommitdiff
path: root/node_modules/htmlparser2/test/Feeds/02-atom.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-03 15:35:00 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-03 15:35:00 +0200
commitde98e0b232509d5f40c135d540a70e415272ff85 (patch)
treea79222a5b58484ab3b80d18efcaaa7ccc4769b33 /node_modules/htmlparser2/test/Feeds/02-atom.js
parente0c9d480a73fa629c1e4a47d3e721f1d2d345406 (diff)
node_modules
Diffstat (limited to 'node_modules/htmlparser2/test/Feeds/02-atom.js')
-rw-r--r--node_modules/htmlparser2/test/Feeds/02-atom.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/htmlparser2/test/Feeds/02-atom.js b/node_modules/htmlparser2/test/Feeds/02-atom.js
new file mode 100644
index 000000000..92b6de336
--- /dev/null
+++ b/node_modules/htmlparser2/test/Feeds/02-atom.js
@@ -0,0 +1,18 @@
+exports.name = "Atom (1.0)";
+exports.file = "/Atom_Example.xml";
+exports.expected = {
+ type: "atom",
+ id: "urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6",
+ title: "Example Feed",
+ link: "http://example.org/feed/",
+ description: "A subtitle.",
+ updated: new Date("2003-12-13T18:30:02Z"),
+ author: "johndoe@example.com",
+ items: [{
+ id: "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a",
+ title: "Atom-Powered Robots Run Amok",
+ link: "http://example.org/2003/12/13/atom03",
+ description: "Some text.",
+ pubDate: new Date("2003-12-13T18:30:02Z")
+ }]
+}; \ No newline at end of file