ember-cli-testdouble-chai
v1.1.1
Published
Ember shim for testdouble-chai
Readme
ember-cli-testdouble-chai
Provides a way for Ember apps to use testdouble-chai. For use with the ember-cli-testdouble addon, which is in turn a wrapper for testdouble.js.
Installation
ember install ember-cli-testdouble-chaiUsage
See the testdouble-chai repo for all the details on how to use it. However, the basics are:
var someFunction = td.function();
someFunction('foo');
expect(someFunction).to.be.called;
expect(someFunction).to.be.calledWith('foo');