@@ -5,7 +5,7 @@ exports[`rss 2.0 should generate a valid feed 1`] = `
55<rss version =\\"2.0\\" xmlns:dc=\\"http://purl.org/dc/elements/1.1/\\" xmlns:content=\\"http://purl.org/rss/1.0/modules/content/\\" xmlns:atom=\\"http://www.w3.org/2005/Atom\\">
66 <channel>
77 <title>Feed Title</title>
8- <link>http://example.com/</link>
8+ <link>http://example.com/?link=sanitized&value=3 </link>
99 <description>This is my personnal feed!</description>
1010 <lastBuildDate>Sat, 13 Jul 2013 23:00:00 GMT</lastBuildDate>
1111 <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
@@ -14,8 +14,8 @@ exports[`rss 2.0 should generate a valid feed 1`] = `
1414 <ttl>60</ttl>
1515 <image>
1616 <title>Feed Title</title>
17- <url>http://example.com/image.png</url>
18- <link>http://example.com/</link>
17+ <url>http://example.com/image.png?link=sanitized&value=6 </url>
18+ <link>http://example.com/?link=sanitized&value=3 </link>
1919 </image>
2020 <copyright>All rights reserved 2013, John Doe</copyright>
2121 <category>Technology</category>
@@ -54,7 +54,7 @@ exports[`rss 2.0 should generate a valid feed with audio 1`] = `
5454<rss version =\\"2.0\\" xmlns:dc=\\"http://purl.org/dc/elements/1.1/\\" xmlns:content=\\"http://purl.org/rss/1.0/modules/content/\\" xmlns:atom=\\"http://www.w3.org/2005/Atom\\">
5555 <channel>
5656 <title>Feed Title</title>
57- <link>http://example.com/</link>
57+ <link>http://example.com/?link=sanitized&value=3 </link>
5858 <description>This is my personnal feed!</description>
5959 <lastBuildDate>Sat, 13 Jul 2013 23:00:00 GMT</lastBuildDate>
6060 <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
@@ -63,8 +63,8 @@ exports[`rss 2.0 should generate a valid feed with audio 1`] = `
6363 <ttl>60</ttl>
6464 <image>
6565 <title>Feed Title</title>
66- <url>http://example.com/image.png</url>
67- <link>http://example.com/</link>
66+ <url>http://example.com/image.png?link=sanitized&value=6 </url>
67+ <link>http://example.com/?link=sanitized&value=3 </link>
6868 </image>
6969 <copyright>All rights reserved 2013, John Doe</copyright>
7070 <category>Technology</category>
@@ -166,7 +166,7 @@ exports[`rss 2.0 should generate a valid feed with enclosure 1`] = `
166166<rss version =\\"2.0\\" xmlns:dc=\\"http://purl.org/dc/elements/1.1/\\" xmlns:content=\\"http://purl.org/rss/1.0/modules/content/\\" xmlns:atom=\\"http://www.w3.org/2005/Atom\\">
167167 <channel>
168168 <title>Feed Title</title>
169- <link>http://example.com/</link>
169+ <link>http://example.com/?link=sanitized&value=3 </link>
170170 <description>This is my personnal feed!</description>
171171 <lastBuildDate>Sat, 13 Jul 2013 23:00:00 GMT</lastBuildDate>
172172 <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
@@ -175,8 +175,8 @@ exports[`rss 2.0 should generate a valid feed with enclosure 1`] = `
175175 <ttl>60</ttl>
176176 <image>
177177 <title>Feed Title</title>
178- <url>http://example.com/image.png</url>
179- <link>http://example.com/</link>
178+ <url>http://example.com/image.png?link=sanitized&value=6 </url>
179+ <link>http://example.com/?link=sanitized&value=3 </link>
180180 </image>
181181 <copyright>All rights reserved 2013, John Doe</copyright>
182182 <category>Technology</category>
@@ -257,7 +257,7 @@ exports[`rss 2.0 should generate a valid feed with image properties 1`] = `
257257<rss version =\\"2.0\\" xmlns:dc=\\"http://purl.org/dc/elements/1.1/\\" xmlns:content=\\"http://purl.org/rss/1.0/modules/content/\\" xmlns:atom=\\"http://www.w3.org/2005/Atom\\">
258258 <channel>
259259 <title>Feed Title</title>
260- <link>http://example.com/</link>
260+ <link>http://example.com/?link=sanitized&value=3 </link>
261261 <description>This is my personnal feed!</description>
262262 <lastBuildDate>Sat, 13 Jul 2013 23:00:00 GMT</lastBuildDate>
263263 <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
@@ -266,8 +266,8 @@ exports[`rss 2.0 should generate a valid feed with image properties 1`] = `
266266 <ttl>60</ttl>
267267 <image>
268268 <title>Feed Title</title>
269- <url>http://example.com/image.png</url>
270- <link>http://example.com/</link>
269+ <url>http://example.com/image.png?link=sanitized&value=6 </url>
270+ <link>http://example.com/?link=sanitized&value=3 </link>
271271 </image>
272272 <copyright>All rights reserved 2013, John Doe</copyright>
273273 <category>Technology</category>
@@ -371,7 +371,7 @@ exports[`rss 2.0 should generate a valid podcast feed with audio 1`] = `
371371<rss version =\\"2.0\\" xmlns:dc=\\"http://purl.org/dc/elements/1.1/\\" xmlns:content=\\"http://purl.org/rss/1.0/modules/content/\\" xmlns:atom=\\"http://www.w3.org/2005/Atom\\" xmlns:googleplay=\\"http://www.google.com/schemas/play-podcasts/1.0\\" xmlns:itunes=\\"http://www.itunes.com/dtds/podcast-1.0.dtd\\">
372372 <channel>
373373 <title>Feed Title</title>
374- <link>http://example.com/</link>
374+ <link>http://example.com/?link=sanitized&value=3 </link>
375375 <description>This is my personnal feed!</description>
376376 <lastBuildDate>Sat, 13 Jul 2013 23:00:00 GMT</lastBuildDate>
377377 <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
@@ -380,8 +380,8 @@ exports[`rss 2.0 should generate a valid podcast feed with audio 1`] = `
380380 <ttl>60</ttl>
381381 <image>
382382 <title>Feed Title</title>
383- <url>http://example.com/image.png</url>
384- <link>http://example.com/</link>
383+ <url>http://example.com/image.png?link=sanitized&value=6 </url>
384+ <link>http://example.com/?link=sanitized&value=3 </link>
385385 </image>
386386 <copyright>All rights reserved 2013, John Doe</copyright>
387387 <category>Technology</category>
@@ -398,6 +398,14 @@ exports[`rss 2.0 should generate a valid podcast feed with audio 1`] = `
398398 <category>Grateful Dead</category>
399399 <category domain =\\"http://www.fool.com/cusips\\">MSFT</category>
400400 <enclosure url =\\"https://example.com/hello-world.jpg\\" length =\\"0\\" type =\\"image/jpg\\"/>
401+ <_item_extension_1>
402+ <about>just an item extension example</about>
403+ <dummy1>example</dummy1>
404+ </_item_extension_1>
405+ <_item_extension_2>
406+ <about>just a second item extension example</about>
407+ <dummy1>example</dummy1>
408+ </_item_extension_2>
401409 </item>
402410 <item>
403411 <title><![CDATA[Hello World]]></title>
@@ -412,14 +420,26 @@ exports[`rss 2.0 should generate a valid podcast feed with audio 1`] = `
412420 <category domain =\\"http://www.fool.com/cusips\\">MSFT</category>
413421 <enclosure length =\\"12665\\" type =\\"audio/mpeg\\" url =\\"https://example.com/hello-world.mp3\\"/>
414422 <itunes:duration>50:00</itunes:duration>
423+ <_item_extension_1>
424+ <about>just an item extension example</about>
425+ <dummy1>example</dummy1>
426+ </_item_extension_1>
427+ <_item_extension_2>
428+ <about>just a second item extension example</about>
429+ <dummy1>example</dummy1>
430+ </_item_extension_2>
415431 </item>
432+ <_example_extension>
433+ <about>just an extension example</about>
434+ <dummy>example</dummy>
435+ </_example_extension>
416436 <googleplay:owner>[email protected] </googleplay:owner> 417437 <itunes:owner>
418438 <itunes:email>[email protected] </itunes:email> 419439 </itunes:owner>
420440 <googleplay:author>John Doe</googleplay:author>
421441 <itunes:author>John Doe</itunes:author>
422- <googleplay:image href =\\"http://example.com/image.png\\"/>
442+ <googleplay:image href =\\"http://example.com/image.png?link=sanitized&value=6 \\"/>
423443 </channel>
424444</rss>"
425445`;
0 commit comments