0.2.0 • Published 8 years ago

karma-sinon-chrome v0.2.0

Weekly downloads
141
License
MIT
Repository
github
Last release
8 years ago

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

0.2.0

8 years ago

0.1.0

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago