mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04:00
test: Fix act errors in DndMetricSelect test (#22048)
This commit is contained in:
parent
aa48cae6fb
commit
7a52b22237
@ -30,6 +30,13 @@ import { DndMetricSelect } from 'src/explore/components/controls/DndColumnSelect
|
||||
import { AGGREGATES } from 'src/explore/constants';
|
||||
import { EXPRESSION_TYPES } from '../MetricControl/AdhocMetric';
|
||||
|
||||
jest.mock(
|
||||
'src/components/Icons/Icon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) =>
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />,
|
||||
);
|
||||
|
||||
const defaultProps = {
|
||||
savedMetrics: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user