]> git.proxmox.com Git - mirror_novnc.git/blobdiff - tests/assertions.js
Use fat arrow functions `const foo = () => { ... };` for callbacks
[mirror_novnc.git] / tests / assertions.js
index a336a7a1bb3b61d6967ca6df9cfcb039f2d96900..ba931c221b72e4e7c33c68cf7840ee1c53c3bea0 100644 (file)
@@ -32,7 +32,7 @@ chai.use(function (_chai, utils) {
 
     _chai.Assertion.addMethod('sent', function (target_data) {
         const obj = this._obj;
-        obj.inspect = function () {
+        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;