Karma plugin for the Referee assertion library
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.npmignore
.gitignore
.jshintrc
.travis.yml
LICENSE
README.md
package.json

README.md

karma-referee

Build Status Dependency Status devDependency Status

NPM

This project enables you to use Referee (previously known as buster-assertions) as part of your tests running on Karma-runner.

Installation

$ npm install karma-referee --save-dev

Add refere as a framework:

frameworks: ['referee']

Then make sure you configure the karma-referee plugin.

plugins: [
	'karma-referee'
]

Viola, you can now enjoy referee's assertion awesomeness from the comfort of your very own Karma-runner!

Overview

In addition to referee, the plugin also exposes the features in the referee-sinon module, which provides sinon-specific assertions such as assert.calledOnce and others. Formatio is also used to pretty-print error messages from Referee and Sinon. The plugin expose the assert, refute and expect objects on window.

Contributors