-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add unit tests for common sidebar functionality #10619
Conversation
|
||
if (this.props.inline) { | ||
return ( | ||
<View style={[StyleUtils.getWidthAndHeightStyle(width, height), styles.bgTransparent, styles.overflowVisible]}> | ||
<View | ||
accessibilityHint={`${this.props.src.name} Icon`} |
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 small refactoring done in this file was to add this prop, which allowed the Icon to be targetted by the unit tests. The rest of the changes in this file are just some cleaning up.
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.
Left a few small comments
Co-authored-by: Carlos Martins <[email protected]>
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.
LGTM
🚀 Deployed to staging by @danieldoglas in version: 1.1.95-0 🚀
|
Fixed Issues
This is part of the refactoring needed in this issue: #7948
Tests
The unit tests were based on the tests written in these PRs:
#6084
#5317
QA Steps
Same as in these PRs:
#6084
#5317
cc @luacmartins