mirror of
https://github.com/chaijs/chai
synced 2024-11-15 00:07:11 +00:00
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:
parent
f937ee5be0
commit
a7e1200db4
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue