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
test: SelectAsyncControl #13638
test: SelectAsyncControl #13638
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13638 +/- ##
==========================================
- Coverage 77.21% 73.39% -3.83%
==========================================
Files 912 621 -291
Lines 46449 22073 -24376
Branches 5725 5740 +15
==========================================
- Hits 35866 16200 -19666
+ Misses 10447 5729 -4718
- Partials 136 144 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
...rset-frontend/src/explore/components/controls/SelectAsyncControl/SelectAsyncControl.test.tsx
Outdated
Show resolved
Hide resolved
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! Just two small nits
|
||
beforeEach(() => { | ||
jest.resetAllMocks(); | ||
defaultProps = { |
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.
I think the same comment as the previous PRs. No need to replace the entire props
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.
Just linking the same answer to "stay registered"
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.
done by factory: #13753 (comment)
superset-frontend/src/explore/components/controls/SelectAsyncControl/index.jsx
Show resolved
Hide resolved
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
superset-frontend/src/explore/components/controls/SelectAsyncControl/index.jsx
Show resolved
Hide resolved
* SelectAsyncControl tests * fix: lint error * applying factory to props
SUMMARY
Tests for SelectAsyncControl
TEST PLAN
No behavior changes and the interface for importing was maintained.
All tests must pass.