Skip to content

Commit

Permalink
[test fix] Update failing test for #404 to be correct.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Oct 6, 2014
1 parent 549dc33 commit 3667363
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions test/logger-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,17 @@ vows.describe('winton/logger').addBatch({
}
},
"with no transports": {
topic: winston,
"should throw an appropriate error": function () {
assert.throws(function () { return new winston.Logger(); }, Error);
topic: new winston.Logger(),
"the log method": {
topic: function (logger) {
var that = this;
logger.log('error', 'This should be an error', function (err) {
that.callback(null, err);
});
},
"should respond with the appropriate error": function (err) {
assert.instanceOf(err, Error);
}
}
}
}
Expand Down

0 comments on commit 3667363

Please sign in to comment.