karma-sinon-stub-promise

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i karma-sinon-stub-promise

Weekly Downloads

177

Version

1.0.0

License

Unlicense

Last publish

Collaborators

  • alexweber