karma-unexpected
v0.0.2
Published
Unexpected for Karma
Downloads
24
Maintainers
Readme
karma-unexpected
Unexpected for Karma
Installation
Install the plugin from npm:
$ npm install karma-unexpected --save-dev
Or from Github:
$ npm install 'git+https://github.com/marcopeg/karma-unexpected.git' --save-dev
Add unexpected
to the frameworks
key in your Karma configuration:
module.exports = function(config) {
config.set({
# frameworks to load
frameworks: [..., 'unexpected'],
# ...
});
};
Usage
Unexpected will be available as expect
:
it('should work', function() {
expect(1, 'to equal', 1);
});
License
The MIT License (MIT)