@financial-times/karma-proclaim
v1.1.2
Published
Proclaim assertion library for Karma
Downloads
33
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 @financial-times/karma-proclaim --save-dev
Or from Github:
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);
});
});