0.1.6 • Published 8 years ago

karma-sinon-as-promised v0.1.6

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

karma-sinon-as-promised

sinon-as-promised for Karma

Installation

$ npm install --save-dev karma-sinon-as-promised

Requirements

This plugin has two peerDependencies with * requirement versions:

Karma and Sinon versions will be resolved by these plugins

Usage

Add sinon-as-promised to the frameworks array in your Karma configuration:

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

karma would resolve the frameworks from reverse order. So keep the framework order as per the dependencies as shown in the above exaplle

License

MIT