Skip to content

Commit

Permalink
clean up and work out test
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanGRomano committed Oct 27, 2014
1 parent 854b9b0 commit 28a6562
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,5 +357,5 @@ function Socket (sock) {
this.emit = function() {
debug('debug wrapped');
return sock.emit.apply(sock, slice.call(arguments));
}
};
}
2 changes: 1 addition & 1 deletion spec/lib/router-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe 'Router', ->
When -> @router.onEvent.call @socket, @packet
Then -> expect(@socket.ack).toHaveBeenCalledWith @packet.id
And -> expect(@router.onRoute).toHaveBeenCalledWith null, jasmine.any(Object), ['message', 'hello', @fn]
#And -> expect(@router.onRoute.mostRecentCall.args[1].sock).toBe @socket
And -> expect(@router.onRoute.mostRecentCall.args[1].__proto__).toBe @socket

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

Expand Down

0 comments on commit 28a6562

Please sign in to comment.