mirror of
https://github.com/apache/superset.git
synced 2026-09-06 15:24:51 +00:00
fix(ci): format ErrorMessage tests (#43114)
This commit is contained in:
@@ -25,10 +25,11 @@ import { BasicErrorAlert } from './BasicErrorAlert';
|
||||
jest.mock(
|
||||
'@superset-ui/core/components/Icons/AsyncIcon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) => (
|
||||
// eslint-disable-next-line jsx-a11y/prefer-tag-over-role -- mirrors AsyncIcon's real span+role="img" shape
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />
|
||||
),
|
||||
({ fileName }: { fileName: string }) =>
|
||||
(
|
||||
// eslint-disable-next-line jsx-a11y/prefer-tag-over-role -- mirrors AsyncIcon's real span+role="img" shape
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />
|
||||
),
|
||||
);
|
||||
|
||||
const mockedProps = {
|
||||
|
||||
Reference in New Issue
Block a user