mirror of
https://github.com/apache/superset.git
synced 2026-04-27 20:14:54 +00:00
test: Fixes act errors in ErrorMessage tests (#21414)
This commit is contained in:
committed by
GitHub
parent
8539d4cb67
commit
9c285dafb4
@@ -23,6 +23,13 @@ import { render, screen } from 'spec/helpers/testing-library';
|
||||
import ParameterErrorMessage from './ParameterErrorMessage';
|
||||
import { ErrorLevel, ErrorSource, ErrorTypeEnum } from './types';
|
||||
|
||||
jest.mock(
|
||||
'src/components/Icons/Icon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) =>
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />,
|
||||
);
|
||||
|
||||
const mockedProps = {
|
||||
error: {
|
||||
error_type: ErrorTypeEnum.MISSING_TEMPLATE_PARAMS_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user