import { setMockValues } from '../../../../__mocks__/kea_logic' ; import React from 'react' ; import { shallow } from 'enzyme' ; import { AnalyticsCards } from '../../analytics' ; import { TotalStats } from './total_stats' ; describe ( 'TotalStats' , ( ) => { it ( 'renders' , ( ) => { setMockValues ( { totalQueries : 11 , documentCount : 22 , totalClicks : 33 , } ) ; const wrapper = shallow ( < TotalStats />); expect ( wrapper . find ( AnalyticsCards ) ) . toHaveLength ( 1 ) ; } ) ; } ) ;