karma-referee
This project enables you to use referee (previously known as buster-assertions) as part of your tests running on 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.
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!