Skip to content

Commit

Permalink
test: Fixes act errors in ErrorAlert test (#21394)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored Sep 8, 2022
1 parent 08a4cbd commit 700079f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ import { supersetTheme } from '@superset-ui/core';
import ErrorAlert from './ErrorAlert';
import { ErrorLevel, ErrorSource } from './types';

jest.mock(
'src/components/Icons/Icon',
() =>
({ fileName }: { fileName: string }) =>
<span role="img" aria-label={fileName.replace('_', '-')} />,
);

const mockedProps = {
body: 'Error body',
level: 'warning' as ErrorLevel,
Expand Down

0 comments on commit 700079f

Please sign in to comment.