mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
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 ErrorAlert from './ErrorAlert';
|
||||||
import { ErrorLevel, ErrorSource } from './types';
|
import { ErrorLevel, ErrorSource } from './types';
|
||||||
|
|
||||||
|
jest.mock(
|
||||||
|
'src/components/Icons/Icon',
|
||||||
|
() =>
|
||||||
|
({ fileName }: { fileName: string }) =>
|
||||||
|
<span role="img" aria-label={fileName.replace('_', '-')} />,
|
||||||
|
);
|
||||||
|
|
||||||
const mockedProps = {
|
const mockedProps = {
|
||||||
body: 'Error body',
|
body: 'Error body',
|
||||||
level: 'warning' as ErrorLevel,
|
level: 'warning' as ErrorLevel,
|
||||||
|
Loading…
Reference in New Issue
Block a user