Negligent Parachute Maintainers

    karma-sinon-chrome

    0.2.0 • Public • Published

    karma-sinon-chrome

    A Karma plugin - adapter for sinon chrome

    Build Status

    it('should create a new tab', function() {
      chrome.browserAction.onClicked.addListener(function() {
        chrome.tabs.create({});
      });
      chrome.browserAction.onClicked.trigger();
      expect(chrome.tabs.create.called).toBe(true);
    });

    Installation

    $ npm i -D karma-sinon-chrome
    

    Add sinon-chrome to the frameworks key in your Karma configuration

    module.exports = function(config) {
      config.set({
        //...
     
        frameworks: ['jasmine', 'sinon-chrome']
     
        //...
      });
    };

    License

    MIT

    Install

    npm i karma-sinon-chrome

    DownloadsWeekly Downloads

    66

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • 9joneg