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);