mirror of
https://github.com/novnc/noVNC.git
synced 2026-06-09 05:44:38 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user