diff --git a/chai-bignumber.js b/chai-bignumber.js index a1d1204..0d458eb 100644 --- a/chai-bignumber.js +++ b/chai-bignumber.js @@ -6,7 +6,6 @@ module.exports = function (BigNumber) { var isGreaterThanOrEqualTo = BigNumber.prototype.isGreaterThanOrEqualTo || BigNumber.prototype.greaterThanOrEqualTo; var isLessThan = BigNumber.prototype.isLessThan || BigNumber.prototype.lessThan; var isLessThanOrEqualTo = BigNumber.prototype.isLessThanOrEqualTo || BigNumber.prototype.lessThanOrEqualTo; - var oneOf = BigNumber.prototype.oneOf return function (chai, utils) { chai.Assertion.addProperty('bignumber', function () { @@ -162,7 +161,7 @@ module.exports = function (BigNumber) { return function (list) { if (utils.flag(this, 'bignumber')) { var value = convert(this._obj); - var found = false + var found = false; for (var i = 0; i < list.length; i++) { if (value.isEqualTo(list[i])) { found = true; @@ -173,7 +172,7 @@ module.exports = function (BigNumber) { 'expected #{this} to be one of #{exp}', 'expected #{this} to not be one of #{exp}', list - ) + ); } else { original.apply(this, arguments); }