-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: int keys ranging outside of [0, 4294967294] are ignored when comparing arrays together #11057
Conversation
…g arrays together
@@ -0,0 +1,6 @@ | |||
test('inline snapshots', () => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file should not be checked in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops, I may have miss clicked when adding the last commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
packages/expect/src/jasmineUtils.ts
Outdated
@@ -198,7 +198,7 @@ function keys( | |||
isArray: boolean, | |||
hasKey: (obj: object, key: string) => boolean, | |||
) { | |||
var allKeys = (function(o) { | |||
var allKeys = (function (o) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
…paring arrays together (jestjs#11057)
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
This Pull Request fixes #11056.
arr1
andarr2
are now said to be different in the code below:Test plan
Test added