-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate and simplify
toMatchObject
; validate "special cases" (#2798)
- Hoist methods from `toMatchObject` outside the matchers object to better resemble other matchers - Simplify “subset matching” while leveraging the expected equality and iterable equality tests by creating a customMatcher for `eq` - Add test cases to validate jasmine’s special handling of equality like `0 == -0` - Add test cases to validate `iterableEquality` when used as a custom matcher for `toEqual` and `toMatchObject` - Cleanup style near changed code.
- Loading branch information
Showing
6 changed files
with
162 additions
and
115 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -297,5 +297,4 @@ module.exports = { | |
hasProperty, | ||
isA, | ||
isUndefined, | ||
asymmetricMatch, | ||
}; |
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.