karma-proclaim
v1.0.0
Published
Proclaim assertion library for Karma
Downloads
13
Readme
karma-proclaim
Proclaim assertion library for Karma.
Proclaim is a simple assertion library for server and client side JavaScript. It can be used with most test frameworks and is compatible with IE6+. Proclaim is an attempt to achieve the simplicity of Node.js assert with the extra assertions of Chai.
Installation
Install the plugin from npm:
$ npm install karma-proclaim --save-dev
Or from Github:
$ npm install 'git+https://github.com/bcbailey/karma-proclaim.git' --save-dev
Add proclaim
to the frameworks
key in your Karma configuration:
module.exports = function(config) {
config.set({
// frameworks to use
frameworks: [ 'mocha', 'proclaim' ]
// ...
});
});
Usage
describe('mocha tests with proclaim', function() {
it('should expose proclaim', function() {
proclaim.ok('everything', 'everything is ok');
proclaim.notEqual('foo', 'bar');
proclaim.isTrue(true);
});
});