mirror of
https://github.com/apache/superset.git
synced 2026-06-02 06:09:21 +00:00
test: Fix act errors in DndMetricSelect test (#22048)
This commit is contained in:
committed by
GitHub
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: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user