Skip to content

alexweber/karma-sinon-stub-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-sinon-stub-promise

A Karma plugin for sinon-stub-promise

npm Dependency Status devDependency Status

Installation

npm install karma-sinon-stub-promise --save-dev

Requirements

This plugin has two peerDependencies with * requirement versions:

Usage

Add sinon-stub-promise to the frameworks array in your Karma configuration:

module.exports = function(config) {
  'use strict';
  config.set({
    frameworks: ['mocha', 'sinon-stub-promise', 'sinon-chai', 'chai'],
    plugins: [ ... , 'karma-sinon-stub-promise']
    #...
  });
}

Keep in mind that, since Karma loads its frameworks in reverse and sinon-stub-promise depends on sinon-chai, you should declare it accordingly as done above.

Contributing

If you like this/find it useful/find a bug please open an issue and, better yet, submit a Pull Request! ☺ Any and all help appreciated, thanks!


No rights reserved. Made with ♥ by Alex Weber

About

A Karma plugin - adapter for sinon-stub-promise

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published