import { shallow } from 'enzyme' ; import React from 'react' ; import { AggName } from '../../../../../../common/types/aggregations' ; import { PIVOT_SUPPORTED_AGGS } from '../../../../../../common/types/pivot_aggs' ; import { PivotAggsConfig } from '../../../../common' ; import { AggLabelForm } from './agg_label_form' ; describe ( 'Transform: <AggLabelForm />' , ( ) => { test ( 'Date histogram aggregation' , ( ) => { const item = { agg : PIVOT_SUPPORTED_AGGS . CARDINALITY , field : 'the-group-by-field' , aggName : 'the-group-by-agg-name' , dropDownName : 'the-group-by-drop-down-name' , } ; const props = { item , otherAggNames : [ ] , options : { } , deleteHandler ( l ) { } , onChange ( ) { } , } ; const wrapper = shallow ( < AggLabelForm { ... props } / > ) ; expect ( wrapper ) . toMatchSnapshot ( ) ; } ) ; } ) ;