mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-02-04 03:56:19 +00:00
move from nodeunit to mocha for tests. added npm test to run tests.
This commit is contained in:
@@ -11,7 +11,7 @@ function RSS (options, items) {
|
||||
|
||||
this.title = options.title || 'Untitled RSS Feed';
|
||||
this.description = options.description || '';
|
||||
this.generator = options.generator || 'NodeJS RSS Module';
|
||||
this.generator = options.generator || 'RSS for Node';
|
||||
this.feed_url = options.feed_url;
|
||||
this.site_url = options.site_url;
|
||||
this.image_url = options.image_url;
|
||||
@@ -85,8 +85,7 @@ function generateXML (data){
|
||||
ifTruePush(category, channel, { category: { _cdata: category } });
|
||||
});
|
||||
}
|
||||
// { updated: new Date().toGMTString() }
|
||||
|
||||
|
||||
data.items.forEach(function(item) {
|
||||
var item_values = [
|
||||
{ title: { _cdata: item.title } }
|
||||
@@ -141,6 +140,4 @@ function generateXML (data){
|
||||
] };
|
||||
}
|
||||
|
||||
|
||||
|
||||
module.exports = RSS;
|
||||
module.exports = RSS;
|
||||
Reference in New Issue
Block a user