import { DEFAULT_INITIAL_APP_DATA } from '../../../../../../common/__mocks__' ; import { setMockValues as setMockKeaValues , setMockActions } from '../../../../__mocks__/kea_logic' ; const { workplaceSearch : mockAppValues } = DEFAULT_INITIAL_APP_DATA ; export const mockOverviewValues = { accountsCount : 0 , activityFeed : [ ] , hasOrgSources : false , hasUsers : false , isOldAccount : false , pendingInvitationsCount : 0 , privateSourcesCount : 0 , sourcesCount : 0 , dataLoading : true , } ; export const mockActions = { initializeOverview : jest . fn ( ( ) => ( { } ) ) , } ; const mockValues = { ... mockOverviewValues , ... mockAppValues } ; setMockActions ( { ... mockActions } ) ; setMockKeaValues ( { ... mockValues } ) ; export const setMockValues = ( values ) => { setMockKeaValues ( { ... mockValues , ... values } ) ; } ;