From fee115b13f17315ad4a66e098fa62631f5970639 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 27 Oct 2022 15:59:48 +0200 Subject: [PATCH] Update method to limit assertion output Newer versions of the test framework use the inspect() method instead of toString() for overriding the default output. --- tests/test.rfb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test.rfb.js b/tests/test.rfb.js index 75d1e118..edb98cb4 100644 --- a/tests/test.rfb.js +++ b/tests/test.rfb.js @@ -111,11 +111,11 @@ describe('Remote Frame Buffer Protocol Client', function () { }; // Avoiding printing the entire Websock buffer on errors - Websock.prototype.toString = function () { return "[object Websock]"; }; + Websock.prototype.inspect = function () { return "[object Websock]"; }; }); after(function () { - delete Websock.prototype.toString; + delete Websock.prototype.inspect; this.clock.restore(); window.requestAnimationFrame = raf; window.ResizeObserver = realObserver;