mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
test fixes
This commit is contained in:
parent
698cd2e8f4
commit
cae21230ee
@ -16,7 +16,7 @@ describe('authorizer', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
socket.on('error', function(err){
|
socket.on('error', function(err){
|
||||||
err.should.eql("jwt malformed");
|
err.message.should.eql("jwt malformed");
|
||||||
err.code.should.eql("invalid_token");
|
err.code.should.eql("invalid_token");
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
@ -61,7 +61,7 @@ describe('authorizer', function () {
|
|||||||
socket.on('connect', function () {
|
socket.on('connect', function () {
|
||||||
done(new Error('this shouldnt happen'));
|
done(new Error('this shouldnt happen'));
|
||||||
}).on('error', function (err) {
|
}).on('error', function (err) {
|
||||||
err.should.eql("jwt signature is required");
|
err.message.should.eql("jwt signature is required");
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user