Skip to content

Commit 28a6562

Browse files
committed
clean up and work out test
1 parent 854b9b0 commit 28a6562

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,5 +357,5 @@ function Socket (sock) {
357357
this.emit = function() {
358358
debug('debug wrapped');
359359
return sock.emit.apply(sock, slice.call(arguments));
360-
}
360+
};
361361
}

spec/lib/router-spec.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe 'Router', ->
3636
When -> @router.onEvent.call @socket, @packet
3737
Then -> expect(@socket.ack).toHaveBeenCalledWith @packet.id
3838
And -> expect(@router.onRoute).toHaveBeenCalledWith null, jasmine.any(Object), ['message', 'hello', @fn]
39-
#And -> expect(@router.onRoute.mostRecentCall.args[1].sock).toBe @socket
39+
And -> expect(@router.onRoute.mostRecentCall.args[1].__proto__).toBe @socket
4040

4141
describe '#onRoute (err:Error=null, sock:Object, args:Array)', ->
4242

0 commit comments

Comments
 (0)