Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Jun 14, 2020
1 parent b6ee355 commit fd35df5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ describe('Async search strategy', () => {
beforeEach(() => {
mockCoreSetup = coreMock.createSetup();
mockDataStart = dataPluginMock.createStartContract();
(mockDataStart.search.getSearchStrategy as jest.Mock).mockReturnValue({ search: mockSearch });

const getStrategy = mockDataStart.search.getSearchStrategy as jest.Mock;
getStrategy.mockReset();
getStrategy.mockReturnValue({ search: mockSearch });

mockCoreSetup.getStartServices.mockResolvedValue([
undefined as any,
{ data: mockDataStart },
Expand Down

0 comments on commit fd35df5

Please sign in to comment.