for Karma
This Karma plugin requires Karma >=0.10
Install the module via npm
$ npm install --save-dev karma-dirty-chai
Add dirty-chai
to the frameworks
key in your Karma configuration:
module.exports = function(config) {
'use strict';
config.set({
frameworks: ['mocha', 'dirty-chai'],
#...
});
}
Each of the function form assertions from dirty-chai will now available in your tests using the expect or should syntax.