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 { PopoverForm } from './popover_form' ; describe ( 'Transform: Aggregation <PopoverForm />' , ( ) => { test ( 'Minimal initialization' , ( ) => { const defaultData = { agg : PIVOT_SUPPORTED_AGGS . CARDINALITY , aggName : 'the-group-by-agg-name' , dropDownName : 'the-group-by-drop-down-name' , field : 'the-field' , } ; const otherAggNames = [ ] ; const onChange = ( item ) => { } ; const wrapper = shallow ( < PopoverForm defaultData = { defaultData } otherAggNames = { otherAggNames } options = { { } } onChange = { onChange } / > ) ; expect ( wrapper ) . toMatchSnapshot ( ) ; } ) ; } ) ;