fixed test for custom elements

This commit is contained in:
Max Nowack
2014-11-11 13:48:51 +01:00
parent 0661501bc4
commit f475832cd3

View File

@@ -321,22 +321,22 @@ describe('rss module', function(done) {
] ]
}); });
var expectedResult ='<?xml version="1.0" encoding="utf-16"?>\n' + var expectedResult ='<?xml version="1.0" encoding="UTF-8"?>\n'+
'<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">' + '<rss 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" version="2.0">'+
'<channel>' + '<channel>' +
'<title>title</title>' + '<title><![CDATA[title]]></title>' +
'<description>description</description>' + '<description><![CDATA[description]]></description>' +
'<link>http://example.com</link>' + '<link>http://example.com</link>' +
'<generator>RSS for Node</generator>' + '<generator>RSS for Node</generator>' +
'<lastBuildDate>' + new Date().toUTCString() +'</lastBuildDate>' + '<lastBuildDate>' + new Date().toUTCString() +'</lastBuildDate>' +
'<atom:link href="http://example.com/rss.xml" rel="self" type="application/rss+xml"/>' + '<atom:link href="http://example.com/rss.xml" rel="self" type="application/rss+xml"/>' +
'<author>Dylan Greene</author>' + '<author><![CDATA[Dylan Greene]]></author>' +
'<pubDate>Sun, 20 May 2012 04:00:00 GMT</pubDate>' + '<pubDate>Sun, 20 May 2012 04:00:00 GMT</pubDate>' +
'<copyright>2013 Dylan Green</copyright>' + '<copyright>2013 Dylan Green</copyright>' +
'<language>en</language>' +
'<managingEditor>Dylan Green</managingEditor>' + '<managingEditor>Dylan Green</managingEditor>' +
'<webMaster>Dylan Green</webMaster>' + '<webMaster>Dylan Green</webMaster>' +
'<docs>http://example.com/rss/docs.html</docs>' + '<docs>http://example.com/rss/docs.html</docs>' +
'<language><![CDATA[en]]></language>' +
'<ttl>60</ttl>' + '<ttl>60</ttl>' +
'<category>Category 1</category>' + '<category>Category 1</category>' +
'<category>Category 2</category>' + '<category>Category 2</category>' +
@@ -353,11 +353,11 @@ describe('rss module', function(done) {
'<itunes:category text="Gadgets"/>' + '<itunes:category text="Gadgets"/>' +
'</itunes:category>' + '</itunes:category>' +
'<item>' + '<item>' +
'<title>item 1</title>' + '<title><![CDATA[item 1]]></title>' +
'<description>description 1</description>' + '<description><![CDATA[description 1]]></description>' +
'<link>http://example.com/article1</link>' + '<link>http://example.com/article1</link>' +
'<guid isPermaLink="true">http://example.com/article1</guid>' + '<guid isPermaLink="true">http://example.com/article1</guid>' +
'<dc:creator>Dylan Greene</dc:creator>' + '<dc:creator><![CDATA[Dylan Greene]]></dc:creator>' +
'<pubDate>Thu, 24 May 2012 04:00:00 GMT</pubDate>' + '<pubDate>Thu, 24 May 2012 04:00:00 GMT</pubDate>' +
'<itunes:author>John Doe</itunes:author>' + '<itunes:author>John Doe</itunes:author>' +
'<itunes:subtitle>A short primer on table spices</itunes:subtitle>' + '<itunes:subtitle>A short primer on table spices</itunes:subtitle>' +