test: Added expect(spy).to.be.called() syntactic sugar

This commit is contained in:
Tobias Bieniek
2013-03-13 17:18:23 +01:00
parent 93577bd335
commit 47261124fc
5 changed files with 32 additions and 27 deletions

View File

@@ -29,6 +29,11 @@ expect.Assertion.prototype.intersectWith = function(other) {
};
expect.Assertion.prototype.called = function() {
return this.obj.called;
};
// helper functions for async testing
(function(global) {