mirror of
https://gitlab.silvrtree.co.uk/martind2000/rss-braider.git
synced 2025-02-10 20:29:16 +00:00
Fixing test fail case
This commit is contained in:
parent
5843cae915
commit
b8d8d12d79
@ -41,7 +41,7 @@ RssBraider.prototype.processFeed = function(feed_name, format, callback)
|
||||
feed_articles = [];
|
||||
|
||||
if (!feed || !feed.sources || feed.sources.length < 1) {
|
||||
return callback("No feeds defined");
|
||||
return callback("No definition for feed name: " + feed_name);
|
||||
}
|
||||
|
||||
async.each(feed.sources, function(source, callback) {
|
||||
|
@ -20,7 +20,7 @@ test('braid feed from file', function(t) {
|
||||
|
||||
rss_braider.processFeed('sample_feed', 'rss', function(err, data){
|
||||
if (err) {
|
||||
return console.error("***" + err);
|
||||
return t.fail(err);
|
||||
}
|
||||
t.equal(data, expectedOutput.fileFeedOutput);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user