mirror of https://github.com/apache/superset.git
test: Fixes act errors in ErrorAlert test (#21394)
This commit is contained in:
parent
08a4cbd27f
commit
700079ff5c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue