mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
12 lines
307 B
JavaScript
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']);
|
|
});
|
|
});
|
|
|
|
});
|