Skip to content
Snippets Groups Projects
Commit ec7ba3ee authored by Pierre Ossman's avatar Pierre Ossman
Browse files

Remove binary protocol tests

We require standard adherence now, so remove tests that assume
the old system.
parent c4482d2d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment