import { setMockValues } from '../../../../__mocks__/kea_logic' ; import React from 'react' ; import { shallow } from 'enzyme' ; import { AnalyticsTable } from '../components' ; import { TopQueriesWithClicks } from './' ; describe ( 'TopQueriesWithClicks' , ( ) => { it ( 'renders' , ( ) => { setMockValues ( { topQueriesWithClicks : [ ] } ) ; const wrapper = shallow ( < TopQueriesWithClicks />); expect ( wrapper . find ( AnalyticsTable ) ) . toHaveLength ( 1 ) ; } ) ; } ) ;