From 36673632b80db578064d740fa9098fc5ae22bb26 Mon Sep 17 00:00:00 2001 From: indexzero Date: Mon, 6 Oct 2014 16:29:58 -0400 Subject: [PATCH] [test fix] Update failing test for #404 to be correct. --- test/logger-test.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/test/logger-test.js b/test/logger-test.js index 23086b658..259219d08 100755 --- a/test/logger-test.js +++ b/test/logger-test.js @@ -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); + } } } }