Closed herodrigues closed 7 years ago
@herodrigues
global.chrome = require('sinon-chrome');
before(function () {
chrome.tabs.query.yields([]);
});
it('...', function () {
console.log(chrome.tabs.query.callCount);
console.log(chrome.tabs.query.args);
});
thanks @acvetkov! You're doing a great work with sinon-chrome :smile:
Couldn't find anything related in the examples, but how can I overcome this situation?
I want to spy chrome.tabs.query callback.