1.1.3 • Published 9 years ago

karma-expect v1.1.3

Weekly downloads
2,211
License
MIT
Repository
github
Last release
9 years ago

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

9 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

11 years ago

1.0.0

12 years ago

0.1.0

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago