import { mount } from 'enzyme' ; import React from 'react' ; import { CreateAnalyticsButton } from './create_analytics_button' ; jest . mock ( '../../../../../../../shared_imports' ) ; describe ( 'Data Frame Analytics: <CreateAnalyticsButton />' , ( ) => { test ( 'Minimal initialization' , ( ) => { const wrapper = mount ( < CreateAnalyticsButton isDisabled = { false } setIsSourceIndexModalVisible = { jest . fn ( ) } / > ) ; expect ( wrapper . find ( 'EuiButton' ) . text ( ) ) . toBe ( 'Create job' ) ; } ) ; } ) ;