From ec7ba3eeae31468fab63b89664fde5b09b669272 Mon Sep 17 00:00:00 2001
From: Pierre Ossman <ossman@cendio.se>
Date: Fri, 3 Feb 2017 17:16:02 +0100
Subject: [PATCH] Remove binary protocol tests

We require standard adherence now, so remove tests that assume
the old system.
---
 tests/test.websock.js | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/tests/test.websock.js b/tests/test.websock.js
index fb2f266..023c772 100644
--- a/tests/test.websock.js
+++ b/tests/test.websock.js
@@ -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;
-- 
GitLab