karma-unexpected

0.0.2 • Public • Published

karma-unexpected

Unexpected for Karma

NPM version Dependency status devDependency Status

Installation

Install the plugin from npm:

$ npm install karma-unexpected --save-dev

Or from Github:

$ npm install 'git+https://github.com/marcopeg/karma-unexpected.git' --save-dev

Add unexpected to the frameworks key in your Karma configuration:

module.exports = function(config) {
  config.set({
    
    # frameworks to load
    frameworks: [..., 'unexpected'],
    
    # ...
  });
};

Usage

Unexpected will be available as expect:

it('should work', function() {
  expect(1, 'to equal', 1);
});

License

The MIT License (MIT)

Package Sidebar

Install

npm i karma-unexpected

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • marcopeg