import { shallow } from 'enzyme' ; import React from 'react' ; import { MlContext } from '../../../../../contexts/ml' ; import { kibanaContextValueMock } from '../../../../../contexts/ml/__mocks__/kibana_context_value' ; import { OutlierExploration } from './outlier_exploration' ; jest . mock ( 'react' , ( ) => { const r = jest . requireActual ( 'react' ) ; return { ... r , memo : ( x ) => x } ; } ) ; describe ( 'Data Frame Analytics: <Exploration />' , ( ) => { test ( 'Minimal initialization' , ( ) => { const wrapper = shallow ( < MlContext . Provider value = { kibanaContextValueMock } > < OutlierExploration jobId = "the-job-id" / > < /MlContext.Provider>); expect ( wrapper . text ( ) ) . toMatch ( '' ) ; } ) ; } ) ;