sockjs/sockjs-client — Issue #35: "[object Object]"
Author: Egobrain
Created: 2011-12-21 06:11:15+00:00
State: open

Why you add object to empty string in send function ?
Object every time converts to "[object Object]".

that._transport.doSend(utils.quote('' + data));

Your test does not cover this situation, because each time they compare string and string, but not objects.
You need to replace "equal" and "equals" test function to "same".