-
Notifications
You must be signed in to change notification settings - Fork 69
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
[BD-46] fix: clean up errors in tests #2226
[BD-46] fix: clean up errors in tests #2226
Conversation
Thanks for the pull request, @PKulkoRaccoonGang! When this pull request is ready, tag your edX technical lead. |
✅ Deploy Preview for paragon-openedx ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2226 +/- ##
==========================================
- Coverage 91.07% 90.97% -0.10%
==========================================
Files 234 234
Lines 4122 4123 +1
Branches 981 982 +1
==========================================
- Hits 3754 3751 -3
- Misses 361 365 +4
Partials 7 7
☔ View full report in Codecov by Sentry. |
e25456a
to
d3d54d4
Compare
ad1cdd5
to
f24c2e0
Compare
</SelectMenu> | ||
``` | ||
|
||
#### Linked variant | ||
|
||
```jsx live | ||
<SelectMenu isLink={true} defaultMessage="Choose Your New Best Friend"> |
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.
why did you remove this? isLink
is a valid prop I think (you can probably remove ={true}
part to improve code-style, but not the whole prop)
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.
Ok, thanks
src/Modal/PopperElement.jsx
Outdated
@@ -30,7 +30,8 @@ PopperElement.defaultProps = { | |||
PopperElement.propTypes = { | |||
children: PropTypes.node, | |||
target: PropTypes.shape({ | |||
current: PropTypes.node, | |||
// eslint-disable-next-line react/forbid-prop-types | |||
current: PropTypes.object, |
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 is a common issue with eslint 😄, you should use PropTypes.shape({})
instead to indicate that you expect an object. (and eslint won't complain then)
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.
Corrected
34f1ba8
to
2ff674d
Compare
2ff674d
to
79924ec
Compare
@PKulkoRaccoonGang 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
🎉 This PR is included in version 20.32.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 21.0.0-alpha.25 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Issue: #2225
Merge Checklist
example
app?wittjeff
andadamstankiewicz
as reviewers on this PR.Post-merge Checklist