Skip to content

Commit

Permalink
cleanup (per notes on pr #333)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpolis committed Dec 29, 2014
1 parent cb1c33b commit 581cf83
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/chai/core/assertions.js
Expand Up @@ -1410,7 +1410,7 @@ module.exports = function (chai, _) {
* Asserts that a function changes an object property
*
* var obj = { val: 10 };
* var fn = function() { obj.val = 10 };
* var fn = function() { obj.val += 3 };
* var noChangeFn = function() { return 'foo' + 'bar'; }
* expect(fn).to.change(obj, 'val');
* expect(noChangFn).to.not.change(obj, 'val')
Expand Down Expand Up @@ -1447,7 +1447,6 @@ module.exports = function (chai, _) {

Assertion.addChainableMethod('change', assertChanges);
Assertion.addChainableMethod('changes', assertChanges);
Assertion.addChainableMethod('Change', assertChanges);

/**
* ### .increase(function)
Expand Down Expand Up @@ -1489,7 +1488,6 @@ module.exports = function (chai, _) {

Assertion.addChainableMethod('increase', assertIncreases);
Assertion.addChainableMethod('increases', assertIncreases);
Assertion.addChainableMethod('Increase', assertIncreases);

/**
* ### .decrease(function)
Expand Down Expand Up @@ -1531,7 +1529,6 @@ module.exports = function (chai, _) {

Assertion.addChainableMethod('decrease', assertDecreases);
Assertion.addChainableMethod('decreases', assertDecreases);
Assertion.addChainableMethod('Decrease', assertDecreases);

function assertChangesBy (expected, msg) {
if (msg) flag(this, 'message', msg);
Expand Down

0 comments on commit 581cf83

Please sign in to comment.