import { shallow } from 'enzyme' ; import React from 'react' ; import { PIVOT_SUPPORTED_AGGS } from '../../../../../../common/types/pivot_aggs' ; import { PivotAggsConfig } from '../../../../common' ; import { AggListSummary , AggListSummaryProps } from './list_summary' ; describe ( 'Transform: <AggListSummary />' , ( ) => { test ( 'Minimal initialization' , ( ) => { const item = { agg : PIVOT_SUPPORTED_AGGS . AVG , field : 'the-field' , aggName : 'the-group-by-agg-name' , dropDownName : 'the-group-by-drop-down-name' , } ; const props = { list : { 'the-agg' : item } , } ; const wrapper = shallow ( < AggListSummary { ... props } / > ) ; expect ( wrapper ) . toMatchSnapshot ( ) ; } ) ; } ) ;