1.1.1 • Published 9 years ago
ember-cli-testdouble-chai v1.1.1
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');