From cae21230eecefd2e88ab29d724833b44cdc5f29c Mon Sep 17 00:00:00 2001 From: Vadim Kazakov Date: Wed, 16 Jul 2014 19:14:07 -0600 Subject: [PATCH] test fixes --- test/authorizer.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/authorizer.test.js b/test/authorizer.test.js index dd3056e..5c868f2 100644 --- a/test/authorizer.test.js +++ b/test/authorizer.test.js @@ -16,7 +16,7 @@ describe('authorizer', function () { }); socket.on('error', function(err){ - err.should.eql("jwt malformed"); + err.message.should.eql("jwt malformed"); err.code.should.eql("invalid_token"); done(); }); @@ -61,10 +61,10 @@ describe('authorizer', function () { socket.on('connect', function () { done(new Error('this shouldnt happen')); }).on('error', function (err) { - err.should.eql("jwt signature is required"); + err.message.should.eql("jwt signature is required"); done(); }); }); }); -}); \ No newline at end of file +});