forked from chaijs/chai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(lengthOf): favor it over
length
- The method part of the `length` assertion was slated for deprecation due to a compatibility issue in legacy environments. The decision to deprecate `length` was reversed per chaijs#684. This commit replaces the deprecation notice with a recommendation to favor `lengthOf` over `length` due to the compatibility issue. - The `lengthOf` assertion wasn't a true alias of `length` because it was a method assertion instead of a chainable method assertion. This commit changes `lengthOf` into a chainable method assertion that's identical to `length`, and updates tests and docs accordingly. - Updates docs to classify `length` as an alias of `lengthOf`. - Updates docs of related assertions to use `lengthOf` instead of `length`.
- Loading branch information
Showing
5 changed files
with
184 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.