acvetkov / sinon-chrome

Testing chrome extensions with Node.js
ISC License
435 stars 46 forks source link

https://github.com/acvetkov/sinon-chrome/issues/40 #45

Closed acvetkov closed 7 years ago

acvetkov commented 7 years ago

@vitalets @Standard8 @kumar303 Support webextensions API

global browser = require('sinon-chrome/webextensions');

browser.cookies.getAll.yields([{name: '123'}]);

// or

browser.cookies.getAll.returns(Promise.resolve([{name: '123'}]));
vitalets commented 7 years ago

Should we use some specific require('sinon-chrome/...') to include webextensions version instead of chromium?

acvetkov commented 7 years ago

Should we use some specific ...

Add small example to description