fix: wrong assertion types (#925)

BREAKING CHANGE: `.change`, `.increase`, and `.decrease` changed from
Chainable Method Assertions to Method Assertions. They don't have any
chaining behavior, and there's no generic semantic benefit to chaining
them.
This commit is contained in:
Grant Snodgrass 2017-02-13 19:23:54 -05:00 committed by Lucas Fernandes da Costa
parent f937ee5be0
commit a7e1200db4

View file

@ -2083,8 +2083,8 @@ module.exports = function (chai, _) {
);
}
Assertion.addChainableMethod('change', assertChanges);
Assertion.addChainableMethod('changes', assertChanges);
Assertion.addMethod('change', assertChanges);
Assertion.addMethod('changes', assertChanges);
/**
* ### .increase(target[, property[, message]])
@ -2147,8 +2147,8 @@ module.exports = function (chai, _) {
);
}
Assertion.addChainableMethod('increase', assertIncreases);
Assertion.addChainableMethod('increases', assertIncreases);
Assertion.addMethod('increase', assertIncreases);
Assertion.addMethod('increases', assertIncreases);
/**
* ### .decrease(target[, property[, message]])
@ -2211,8 +2211,8 @@ module.exports = function (chai, _) {
);
}
Assertion.addChainableMethod('decrease', assertDecreases);
Assertion.addChainableMethod('decreases', assertDecreases);
Assertion.addMethod('decrease', assertDecreases);
Assertion.addMethod('decreases', assertDecreases);
/**
* ### .by