Skip to content

Commit

Permalink
test: Fixes act errors in Toast test (#21393)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored Sep 9, 2022
1 parent ec3b360 commit 71459a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset-frontend/src/components/MessageToasts/Toast.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import Toast from 'src/components/MessageToasts/Toast';
import { act } from 'react-dom/test-utils';
import mockMessageToasts from './mockMessageToasts';

jest.mock('src/components/Icons/Icon', () => () => <span />);

const props = {
toast: mockMessageToasts[0],
onCloseToast() {},
Expand Down

0 comments on commit 71459a6

Please sign in to comment.