Fixing test fail case

This commit is contained in:
Kip Gebhardt 2014-12-26 15:37:34 -08:00
parent 5843cae915
commit b8d8d12d79
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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);
});