import { Vis } from '../../../visualizations/public' ; import { PieVisParams } from '../../../chart_expressions/expression_pie/common' ; import { samplePieVis } from './sample_vis.test.mocks' ; import { toExpressionAst } from './to_ast' ; describe ( 'vis type pie vis toExpressionAst function' , ( ) => { let vis ; const params = { timefilter : { } , timeRange : { } , abortSignal : { } , } as any ; beforeEach ( ( ) => { vis = samplePieVis as any ; } ) ; it ( 'should match basic snapshot' , async ( ) => { const actual = await toExpressionAst ( vis , params ) ; expect ( actual ) . toMatchSnapshot ( ) ; } ) ; } ) ;