diff --git a/lib/sinon-chai.js b/lib/sinon-chai.js index 9120ad4..a302571 100644 --- a/lib/sinon-chai.js +++ b/lib/sinon-chai.js @@ -65,8 +65,9 @@ }; } + var addProperty = utils.addChainableNoop || utils.addProperty; function sinonProperty(name, action, nonNegatedSuffix) { - utils.addProperty(chai.Assertion.prototype, name, function () { + addProperty(chai.Assertion.prototype, name, function () { assertCanWorkWith(this); var messages = getMessages(this._obj, action, nonNegatedSuffix, false);