mirror of
https://github.com/apache/superset.git
synced 2026-05-10 18:35:40 +00:00
test: Fix act errors in FixedOrMetricControl test (#22334)
This commit is contained in:
committed by
GitHub
parent
e1ffdb95b1
commit
4cf40fb286
@@ -21,6 +21,13 @@ import { render, screen } from 'spec/helpers/testing-library';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import FixedOrMetricControl from '.';
|
||||
|
||||
jest.mock(
|
||||
'src/components/Icons/Icon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) =>
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />,
|
||||
);
|
||||
|
||||
const createProps = () => ({
|
||||
datasource: {
|
||||
columns: [{ column_name: 'Column A' }],
|
||||
|
||||
Reference in New Issue
Block a user