Skip to content

fix: getAllBy* methods return more elements than expected #57

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

Merged
merged 3 commits into from
Nov 13, 2018

Conversation

thymikee
Copy link
Member

Summary

While upgrading the RN dev dep to 0.57.5 our test suite caught a bug, where getAllBy* methods would return more elements than expected. This is fixed by making sure we check the proper type of the parameter when we compare it directly to node.type (should be a function, but we allowed strings)

Test plan

Updated snapshot (yay! RN fixed the display names of View and Text)

@thymikee thymikee requested a review from Esemesek November 13, 2018 18:23
@thymikee thymikee merged commit d6d225d into master Nov 13, 2018
@thymikee thymikee deleted the greenkeeper/react-native-0.57.5 branch November 13, 2018 18:26
thymikee added a commit that referenced this pull request Nov 14, 2018
thymikee added a commit that referenced this pull request Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant