mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-02-04 12:06:20 +00:00
fixed test
This commit is contained in:
@@ -277,31 +277,31 @@ describe('rss module', function(done) {
|
|||||||
language: 'en',
|
language: 'en',
|
||||||
managingEditor: 'Dylan Green',
|
managingEditor: 'Dylan Green',
|
||||||
webMaster: 'Dylan Green',
|
webMaster: 'Dylan Green',
|
||||||
ttl: '60'
|
ttl: '60',
|
||||||
custom: {
|
custom: [
|
||||||
'itunes:subtitle': 'A show about everything',
|
{'itunes:subtitle': 'A show about everything'},
|
||||||
'itunes:author': 'John Doe',
|
{'itunes:author': 'John Doe'},
|
||||||
'itunes:summary': 'All About Everything is a show about everything. Each week we dive into any subject known to man and talk about it as much as we can. Look for our podcast in the Podcasts app or in the iTunes Store',
|
{'itunes:summary': 'All About Everything is a show about everything. Each week we dive into any subject known to man and talk about it as much as we can. Look for our podcast in the Podcasts app or in the iTunes Store'},
|
||||||
'itunes:owner': {
|
{'itunes:owner': [
|
||||||
'itunes:name': 'John Doe',
|
{'itunes:name': 'John Doe'},
|
||||||
'itunes:email': 'john.doe@example.com'
|
{'itunes:email': 'john.doe@example.com'}
|
||||||
},
|
]},
|
||||||
'itunes:image': {
|
{'itunes:image': {
|
||||||
_attr: {
|
_attr: {
|
||||||
href: 'http://example.com/podcasts/everything/AllAboutEverything.jpg'
|
href: 'http://example.com/podcasts/everything/AllAboutEverything.jpg'
|
||||||
}
|
}
|
||||||
},
|
}},
|
||||||
'itunes:category': {
|
{'itunes:category': [
|
||||||
_attr: {
|
{_attr: {
|
||||||
text: 'Technology'
|
text: 'Technology'
|
||||||
}
|
}},
|
||||||
'itunes:category': {
|
{'itunes:category': {
|
||||||
_attr: {
|
_attr: {
|
||||||
text: 'Gadgets'
|
text: 'Gadgets'
|
||||||
}
|
}
|
||||||
}
|
}}
|
||||||
}
|
]}
|
||||||
}
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
feed.item({
|
feed.item({
|
||||||
@@ -309,16 +309,16 @@ describe('rss module', function(done) {
|
|||||||
description: 'description 1',
|
description: 'description 1',
|
||||||
url: 'http://example.com/article1',
|
url: 'http://example.com/article1',
|
||||||
date: 'May 24, 2012 04:00:00 GMT',
|
date: 'May 24, 2012 04:00:00 GMT',
|
||||||
custom: {
|
custom: [
|
||||||
'itunes:author': 'John Doe',
|
{'itunes:author': 'John Doe'},
|
||||||
'itunes:subtitle': 'A short primer on table spices',
|
{'itunes:subtitle': 'A short primer on table spices'},
|
||||||
'itunes:image': {
|
{'itunes:image': {
|
||||||
_attr: {
|
_attr: {
|
||||||
href: 'http://example.com/podcasts/everything/AllAboutEverything/Episode1.jpg'
|
href: 'http://example.com/podcasts/everything/AllAboutEverything/Episode1.jpg'
|
||||||
}
|
}
|
||||||
},
|
}},
|
||||||
'itunes:duration': '7:04'
|
{'itunes:duration': '7:04'}
|
||||||
}
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
var expectedResult ='<?xml version="1.0" encoding="utf-16"?>\n' +
|
var expectedResult ='<?xml version="1.0" encoding="utf-16"?>\n' +
|
||||||
|
|||||||
Reference in New Issue
Block a user