Update method to limit assertion output

Newer versions of the test framework use the inspect() method instead of
toString() for overriding the default output.
This commit is contained in:
Pierre Ossman 2022-10-27 15:59:48 +02:00
parent f59be0586f
commit fee115b13f
1 changed files with 2 additions and 2 deletions

View File

@ -111,11 +111,11 @@ describe('Remote Frame Buffer Protocol Client', function () {
}; };
// Avoiding printing the entire Websock buffer on errors // Avoiding printing the entire Websock buffer on errors
Websock.prototype.toString = function () { return "[object Websock]"; }; Websock.prototype.inspect = function () { return "[object Websock]"; };
}); });
after(function () { after(function () {
delete Websock.prototype.toString; delete Websock.prototype.inspect;
this.clock.restore(); this.clock.restore();
window.requestAnimationFrame = raf; window.requestAnimationFrame = raf;
window.ResizeObserver = realObserver; window.ResizeObserver = realObserver;