Proclaim assertion library for Karma
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
LICENSE
README.md
adapter.js
index.js
package.json

README.md

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);
  });
});