import './__mocks__/overview_logic.mock' ; import React from 'react' ; import { shallow } from 'enzyme' ; import { EuiFlexGrid } from '@elastic/eui' ; import { OrganizationStats } from './organization_stats' ; import { StatisticCard } from './statistic_card' ; describe ( 'OrganizationStats' , ( ) => { it ( 'renders' , ( ) => { const wrapper = shallow ( < OrganizationStats />); expect ( wrapper . find ( StatisticCard ) ) . toHaveLength ( 4 ) ; expect ( wrapper . find ( EuiFlexGrid ) . prop ( 'columns' ) ) . toEqual ( 4 ) ; } ) ; } ) ;