spec/javascripts/faye-extension_spec.js in faye-authentication-0.4.0 vs spec/javascripts/faye-extension_spec.js in faye-authentication-1.6.0
- old
+ new
@@ -29,10 +29,10 @@
});
function stubSignature(context, callback) {
var self = context;
self.client.handshake(function() {
- var jwtsign = new jwt.WebToken('{"clientId": "' + self.client._clientId + '", "channel": "/foobar", "exp": 2803694528}', '{"alg": "HS256"}');
+ var jwtsign = new jwt.WebToken('{"clientId": "' + self.client._dispatcher.clientId + '", "channel": "/foobar", "exp": 2803694528}', '{"alg": "HS256"}');
var signature = jwtsign.serialize("macaroni");
jasmine.Ajax.stubRequest('/faye/auth').andReturn({
'responseText': '{"signature": "' + signature + '"}'
});