From 0410cbc1908c460eb2d339e2d1a703ba1d07815d Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 27 Oct 2022 16:02:38 +0200 Subject: [PATCH] Remove redundant inspect() override We do this for all RFB tests now, not just these specific assertions. --- tests/assertions.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/assertions.js b/tests/assertions.js index c33c81ec..739f6375 100644 --- a/tests/assertions.js +++ b/tests/assertions.js @@ -29,12 +29,6 @@ chai.use(function (_chai, utils) { _chai.Assertion.addMethod('sent', function (targetData) { const obj = this._obj; - obj.inspect = () => { - const res = { _websocket: obj._websocket, rQi: obj._rQi, _rQ: new Uint8Array(obj._rQ.buffer, 0, obj._rQlen), - _sQ: new Uint8Array(obj._sQ.buffer, 0, obj._sQlen) }; - res.prototype = obj; - return res; - }; const data = obj._websocket._getSentData(); let same = true; if (data.length != targetData.length) {