Remove binary protocol tests
We require standard adherence now, so remove tests that assume the old system.
This commit is contained in:
parent
c4482d2de5
commit
ec7ba3eeae
|
@ -249,10 +249,6 @@ describe('Websock', function() {
|
|||
expect(WebSocket).to.have.been.calledWith('ws://localhost:8675', 'binary');
|
||||
});
|
||||
|
||||
it('should fail if we specify a protocol besides binary', function () {
|
||||
expect(function () { sock.open('ws:///', 'base64'); }).to.throw(Error);
|
||||
});
|
||||
|
||||
// it('should initialize the event handlers')?
|
||||
});
|
||||
|
||||
|
@ -312,17 +308,6 @@ describe('Websock', function() {
|
|||
expect(sock._recv_message).to.have.been.calledOnce;
|
||||
});
|
||||
|
||||
it('should fail if a protocol besides binary is requested', function () {
|
||||
sock._websocket.protocol = 'base64';
|
||||
expect(sock._websocket.onopen).to.throw(Error);
|
||||
});
|
||||
|
||||
it('should assume binary if no protocol was available on opening', function () {
|
||||
sock._websocket.protocol = null;
|
||||
sock._websocket.onopen();
|
||||
expect(sock._mode).to.equal('binary');
|
||||
});
|
||||
|
||||
it('should call the open event handler on opening', function () {
|
||||
sock._websocket.onopen();
|
||||
expect(sock._eventHandlers.open).to.have.been.calledOnce;
|
||||
|
|
Loading…
Reference in New Issue