mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
committed by
GitHub
parent
20503f92ae
commit
22d52eadb2
@@ -33,7 +33,11 @@ const sumValueAdhocMetric = new AdhocMetric({
|
||||
describe('MetricDefinitionValue', () => {
|
||||
it('renders a MetricOption given a saved metric', () => {
|
||||
const wrapper = shallow(
|
||||
<MetricDefinitionValue option={{ metric_name: 'a_saved_metric' }} />,
|
||||
<MetricDefinitionValue
|
||||
onMetricEdit={() => {}}
|
||||
option={{ metric_name: 'a_saved_metric', expression: 'COUNT(*)' }}
|
||||
index={1}
|
||||
/>,
|
||||
);
|
||||
expect(wrapper.find('AdhocMetricOption')).toExist();
|
||||
});
|
||||
@@ -43,6 +47,7 @@ describe('MetricDefinitionValue', () => {
|
||||
<MetricDefinitionValue
|
||||
onMetricEdit={() => {}}
|
||||
option={sumValueAdhocMetric}
|
||||
index={1}
|
||||
/>,
|
||||
);
|
||||
expect(wrapper.find(AdhocMetricOption)).toExist();
|
||||
|
||||
Reference in New Issue
Block a user