vendor/assets/javascripts/sinon-chai.js in konacha-chai-matchers-0.3.0 vs vendor/assets/javascripts/sinon-chai.js in konacha-chai-matchers-1.0.0

- old
+ new

@@ -1,10 +1,11 @@ (function (sinonChai) { "use strict"; // Module systems magic dance. + /* istanbul ignore else */ if (typeof require === "function" && typeof exports === "object" && typeof module === "object") { // NodeJS module.exports = sinonChai; } else if (typeof define === "function" && define.amd) { // AMD @@ -53,11 +54,15 @@ function printfArray(array) { return spy.printf.apply(spy, array); } return { - affirmative: printfArray(["expected %n to " + verbPhrase + action + nonNegatedSuffix].concat(args)), - negative: printfArray(["expected %n to not " + verbPhrase + action].concat(args)) + affirmative: function () { + return printfArray(["expected %n to " + verbPhrase + action + nonNegatedSuffix].concat(args)); + }, + negative: function () { + return printfArray(["expected %n to not " + verbPhrase + action].concat(args)); + } }; } function sinonProperty(name, action, nonNegatedSuffix) { utils.addProperty(chai.Assertion.prototype, name, function () {