acvetkov / sinon-chrome

Testing chrome extensions with Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chrome.js is missing?

zhaiduo opened this issue · comments

commented

It seems chrome.js not in sinon-chrome folder, where I can find this file?

page.injectJs(node_modules + 'sinon-chrome/chrome.js');

I need it to test chrome extension. Thanks for any help~

@zhaiduo, hi.

You have two ways:

  • Checkout new version 2.1.0. node_modules/sinon-chrome/dist

a. sinon-chrome.min.js - stable chrome extensions api
b. sinon-chrome-apps.min.js - stable chrome apps api
c. sinon-chrome-webextensions.min.js - stable Firefox webextensions api