From 2005a2ca22a468fb4becd367b3e61fb4b94b00ba Mon Sep 17 00:00:00 2001 From: Luca Greco Date: Tue, 26 Nov 2019 16:27:44 +0100 Subject: [PATCH] chore: Updated sinon to version 7.5.0 --- package.json | 2 +- test/test-async-functions.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4011510..1dd5e28 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "selenium-webdriver": "^4.0.0-alpha.1", "serve-static": "^1.13.1", "shelljs": "^0.8.2", - "sinon": "^1.17.6", + "sinon": "^7.5.0", "tap-nirvana": "^1.0.8", "tape": "^4.9.1", "tape-async": "^2.3.0", diff --git a/test/test-async-functions.js b/test/test-async-functions.js index fc6231f..3088698 100644 --- a/test/test-async-functions.js +++ b/test/test-async-functions.js @@ -212,8 +212,8 @@ describe("browser-polyfill", () => { // Call pageAction.show and hide again to ensure that only after a successfull // API call the wrapper will always call the API method without the callback parameter. - fakeChrome.pageAction.show.reset(); - fakeChrome.pageAction.hide.reset(); + fakeChrome.pageAction.show.resetHistory(); + fakeChrome.pageAction.hide.resetHistory(); const secondPageActionShowPromise = browser.pageAction.show(1).catch(err => err); const secondPageActionHidePromise = browser.pageAction.hide(undefined).catch(err => err);