Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angorayc committed Jul 11, 2022
1 parent dd5bfd1 commit 49d57f4
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@ import { createStore } from '../../../common/store';
import { NetworkDetails } from '.';
import { FlowTargetSourceDest } from '../../../../common/search_strategy';

jest.mock('../../../common/containers/use_search_strategy', () => ({
useSearchStrategy: jest.fn().mockReturnValue({
loading: false,
result: {
edges: [],
pageInfo: {
activePage: 0,
fakeTotalCount: 0,
showMorePagesIndicator: false,
},
totalCount: -1,
},
search: jest.fn(),
refetch: jest.fn(),
inspect: {},
}),
}));

jest.mock('@elastic/eui', () => {
const original = jest.requireActual('@elastic/eui');
return {
Expand Down

0 comments on commit 49d57f4

Please sign in to comment.