From 0389b1f043399152f1ae016ea5d039a99e65f41b Mon Sep 17 00:00:00 2001 From: Joshua Perry Date: Tue, 4 Nov 2014 17:00:28 -0700 Subject: [PATCH] Add lint friendly assertions --- lib/sinon-chai.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);