]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Fix duplicate beforeEach() hook
authorPierre Ossman <ossman@cendio.se>
Sat, 14 Oct 2017 10:58:25 +0000 (12:58 +0200)
committerPierre Ossman <ossman@cendio.se>
Thu, 9 Nov 2017 11:52:05 +0000 (12:52 +0100)
tests/test.rfb.js

index 5172066368928e04fe2b37204000e29cd600139b..9e606122aee9bba8133186d24923bc4515859064 100644 (file)
@@ -556,12 +556,11 @@ describe('Remote Frame Buffer Protocol Client', function() {
 
     describe('Protocol Initialization States', function () {
         describe('ProtocolVersion', function () {
+            var client;
             beforeEach(function () {
-                this.clock = sinon.useFakeTimers();
-            });
-
-            afterEach(function () {
-                this.clock.restore();
+                client = make_rfb();
+                client.connect('wss://host:8675');
+                client._sock._websocket._open();
             });
 
             function send_ver (ver, client) {
@@ -638,13 +637,6 @@ describe('Remote Frame Buffer Protocol Client', function() {
                 });
             });
 
-            var client;
-            beforeEach(function () {
-                client = make_rfb();
-                client.connect('wss://host:8675');
-                client._sock._websocket._open();
-            });
-
             it('should handle two step repeater negotiation', function () {
                 client._repeaterID = '\x01\x02\x03\x04\x05';