I am using Mocha and chai for client testing of a small app that I wrote. However, I have run into a problem where even though I know my socket is connected, mocha reports that it isn't. I have looked around and can't seem to find something that satisfies my needs. Here is the code that I am using for testing.
var assert = chai.assert;
describe('index', function(){
var socket = rpsApp.setupSocket();
it('should be connected', function(){
assert.equal(true, socket.socket.connected);
});
});