Mock of chrome extensions API for unit testing under nodejs
npm install sinon-chrome

Sinon-chrome is helper tool for unit-testing chromium and Firefox extensions and apps. It mocks all extensions api with sinon stubs that allows you to run tests in Node.js without actual browser.
Sinon-chrome mocks all chrome api, replaced methods by sinon stubs with some sugar.
Chrome events replaced by classes with same behavior, so you can test your event handlers with manual triggering chrome events.
All properties has values from chrome schema files.
We recommend use sinon-chrome on Node.js platform.
```
npm install sinon-chrome --save-dev
But, if you want...
You can download sinon-chrome bundle from release page and include it on your page
`html