Chai + Sinon-Chai + Sinon for Karma
What makes this plugin different from karma-sinon-chai
?
- It uses (and will always use) the latest compatible versions of every library.
- It uses
peerDependencies
only. - No
bower
dependency.
Install the plugin from npm:
$ npm install karma-chai-sinon --save-dev
Install the plugin from Github:
$ npm install 'git://github.com/tubalmartin/karma-chai-sinon.git' --save-dev
Add chai-sinon
to the frameworks
key in your Karma configuration:
module.exports = function(config) {
config.set({
// frameworks to use
frameworks: ['mocha', 'chai-sinon']
// ...