test: Fix act errors in FixedOrMetricControl test (#22334)

This commit is contained in:
Lyndsi Kay Williams 2022-12-06 07:27:02 -06:00 committed by GitHub
parent e1ffdb95b1
commit 4cf40fb286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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' }],