1.1.1 • Published 8 years ago

ember-cli-testdouble-chai v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

ember-cli-testdouble-chai

Build Status

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-chai

Usage

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');