Skip to content

Commit

Permalink
Change it to test
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Sep 7, 2022
1 parent bb4f437 commit 4915ca3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset-frontend/src/components/FaveStar/FaveStar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jest.mock('src/components/Tooltip', () => ({
Tooltip: (props: any) => <div data-test="tooltip" {...props} />,
}));

it('render right content', async () => {
test('render right content', async () => {
const props = {
itemId: 3,
saveFaveStar: jest.fn(),
Expand Down Expand Up @@ -54,7 +54,7 @@ it('render right content', async () => {
expect(props.saveFaveStar).toBeCalledWith(props.itemId, false);
});

it('render content on tooltip', async () => {
test('render content on tooltip', async () => {
const props = {
itemId: 3,
showTooltip: true,
Expand All @@ -75,7 +75,7 @@ it('render content on tooltip', async () => {
expect(screen.getByRole('button')).toBeInTheDocument();
});

it('Call fetchFaveStar only on the first render', async () => {
test('Call fetchFaveStar only on the first render', async () => {
const props = {
itemId: 3,
fetchFaveStar: jest.fn(),
Expand Down

0 comments on commit 4915ca3

Please sign in to comment.