Closed phongvis closed 6 years ago
I forked the project and tried to run the usage example but the second test is failed at assert.calledOnce(chrome.browserAction.setBadgeText);. The callback in chrome.tabs.query(params, callback); isn't invoked.
assert.calledOnce(chrome.browserAction.setBadgeText);
chrome.tabs.query(params, callback);
Here is my fork: https://github.com/phongvis/sinon-chrome with the following changes:
test-background
npm-run
examples/src
examples/background.test.js
Could you have a check? Thanks.
See https://github.com/acvetkov/sinon-chrome/issues/42
I forked the project and tried to run the usage example but the second test is failed at
assert.calledOnce(chrome.browserAction.setBadgeText);
. The callback inchrome.tabs.query(params, callback);
isn't invoked.Here is my fork: https://github.com/phongvis/sinon-chrome with the following changes:
test-background
option fornpm-run
and install jsdomexamples/src
examples/background.test.js
also in examplesCould you have a check? Thanks.