Skip to content

Latest commit

 

History

History
129 lines (78 loc) · 3.33 KB

ReleaseNotes.md

File metadata and controls

129 lines (78 loc) · 3.33 KB

Release Notes

Note

As of 0.6.0, the ReleaseNotes.md file has been deprecated. Please refer to the release notes available on Github.

0.6.0 / 2015-04-24

Added .spy.on and .spy.object to easily make new spies, for example:

// Returns `fs` but with readFile and readFileSync spied on
var fs = chai.spy.object(fs, ['readFile', 'readFileSync']);

// Shortcut for `fs.writeFile = chai.spy(fs.writeFile)`
chai.spy.on(fs, 'writeFile');

Added new assertions:

  • .called.min(n)/.at.least(n) to assert a spy has been called a minimum of n many times.
  • .called.max(n)/.at.most(n) to assert that a spy has been called at most n number of times.

Community Contributions

Code Features & Fixes

Documentation fixes

0.5.1 / 2012-11-15

Small bugfix, fixing the output of the .called(n) assertion error.

0.5.0 / 2012-11-14

A few new features:

  • Add .with() and .exactly.with() assertion for asserting what arguments a spy was called with.

0.4.0 / 2012-10-09

Ensure spies return the value of their wrapped functions

Community Contributions

Code Features & Fixes

0.3.0 / 2012-07-11

Add ability for spies to have an (optional) name.

Community Contributions

Code Features & Fixes

Documentation fixes

0.2.3 / 2012-07-09

Small bugfixes, improving the AMD wraper

0.2.2 / 2012-05-17

Few minor bugfixes, no new features.

0.2.1 / 2012-05-17

Spies now mimic length of original function.

0.2.0 / 2012-05-16

Add Chai 1.0.0 compatibility.

Community Contributions

Documentation fixes

0.1.0 / 2012-02-13

Initial release