Neovictorian Paisley Menswear
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

karma-expect

1.1.3 • Public • Published

karma-expect

Dependency Status NPM version NPM downloads Travis CI

Motivation

You should use it only if you want run tests in IE8 and lower, otherwise consider karma-chai-plugins, which provides more complete Chai assertions as well as additional plugins.

Installation

Install the module from npm:

$ npm install karma-expect --save-dev

Add expect to the frameworks key in your Karma configuration:

module.exports = function(karma) {
  karma.set({
 
    // frameworks to use
    frameworks: ['mocha', 'expect']
 
    // ...
  });
};

Usage

Expect.js assertions are available in the tests:

describe('karma tests with expect', function() {
  it('should expose expect method', function() {
    expect('foo').to.not.equal('bar');
  });
});

install

npm i karma-expect

Downloadsweekly downloads

3,703

version

1.1.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar