Skip to content

Commit

Permalink
test: Fix act errors in FixedOrMetricControl test (apache#22334)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams authored Dec 6, 2022
1 parent e1ffdb9 commit 4cf40fb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' }],
Expand Down

0 comments on commit 4cf40fb

Please sign in to comment.