cjohansen/Sinon.JS — pull request #122 by mantoni (2012-04-17 20:56:44+00:00)
Title: sinon.match.defined, sinon.assert.calledLike and friends

Hello again,

I actually only wanted to quickly add `sinon.match.defined` and then start documenting, but then I couldn't resist writing an alternative to `calledWith` that uses `sinon.match.like` if the argument is a boolean, string, regexp or object. I'm sorry.

* `spy.firstCall.calledLike`
* `spy.firstCall.notCalledLike`
* `spy.calledLike`
* `spy.alwaysCalledLike`
* `spy.neverCalledLike`
* `sinon.assert.calledLike`
* `sinon.assert.alwaysCalledLike`
* `sinon.assert.neverCalledLike`