mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-26 23:19:41 +00:00
Fix duplicate beforeEach() hook
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user