Files
socket.io/test/socket.js
2013-01-17 17:35:18 +01:00

12 lines
307 B
JavaScript

describe('Socket', function () {
describe('filterUpgrades', function () {
it('should return only available transports', function () {
var socket = new eio.Socket({'transports': ['polling']});
expect(socket.filterUpgrades(['polling','websocket'])).to.eql(['polling']);
});
});
});