From b875486db86aab5e9d1f810ead8eb7fa4c94346b Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 15 Aug 2019 15:34:09 +0200 Subject: [PATCH] Avoid deprecated called.once from sinon-chai It's been removed in newer versions and will break eventually. --- 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 99c9c90c..7e1c52e4 100644 --- a/tests/test.rfb.js +++ b/tests/test.rfb.js @@ -271,7 +271,7 @@ describe('Remote Frame Buffer Protocol Client', function () { it('should move focus to canvas object', function () { client._canvas.focus = sinon.spy(); client.focus(); - expect(client._canvas.focus).to.have.been.called.once; + expect(client._canvas.focus).to.have.been.calledOnce; }); }); @@ -279,7 +279,7 @@ describe('Remote Frame Buffer Protocol Client', function () { it('should remove focus from canvas object', function () { client._canvas.blur = sinon.spy(); client.blur(); - expect(client._canvas.blur).to.have.been.called.once; + expect(client._canvas.blur).to.have.been.calledOnce; }); });