Skip to content

9joneg/karma-sinon-chrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Karma plugin - adapter for sinon-chrome

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published