karma-proclaim

1.0.0 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i karma-proclaim

    Weekly Downloads

    4

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • bcbailey