A Karma plugin for the Referee assertions library
$ npm install karma-referee --save-dev
refere as a framework:
Then make sure you configure the
plugins: [ 'karma-referee' ]
Viola, you can now enjoy referee's assertion awesomeness from the comfort of your very own Karma-runner!
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.