-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: Fix act errors in FaveStar test #21360
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21360 +/- ##
==========================================
- Coverage 66.61% 66.59% -0.03%
==========================================
Files 1791 1791
Lines 68481 68481
Branches 7299 7299
==========================================
- Hits 45617 45603 -14
- Misses 20978 20998 +20
+ Partials 1886 1880 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -26,13 +26,13 @@ jest.mock('src/components/Tooltip', () => ({ | |||
Tooltip: (props: any) => <div data-test="tooltip" {...props} />, | |||
})); | |||
|
|||
test('render right content', () => { | |||
it('render right content', async () => { |
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.
it('render right content', async () => { | |
test('render right content', async () => { |
@@ -54,7 +54,7 @@ test('render right content', () => { | |||
expect(props.saveFaveStar).toBeCalledWith(props.itemId, false); | |||
}); | |||
|
|||
test('render content on tooltip', () => { | |||
it('render content on tooltip', async () => { |
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.
it('render content on tooltip', async () => { | |
test('render content on tooltip', async () => { |
@@ -75,7 +75,7 @@ test('render content on tooltip', () => { | |||
expect(screen.getByRole('button')).toBeInTheDocument(); | |||
}); | |||
|
|||
test('Call fetchFaveStar only on the first render', () => { | |||
it('Call fetchFaveStar only on the first render', async () => { |
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.
it('Call fetchFaveStar only on the first render', async () => { | |
test('Call fetchFaveStar only on the first render', async () => { |
SUMMARY
This PR fixes 3 act errors in
superset-frontend/src/components/FaveStar/FaveStar.test.tsx
TESTING INSTRUCTIONS
superset-frontend/src/components/FaveStar
npm run test superset-frontend/src/components/FaveStar/FaveStar.test.tsx
ADDITIONAL INFORMATION