Skip to content

Commit

Permalink
[Discover] fix use_discover_state unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaanj committed Nov 30, 2021
1 parent 35633fb commit d3b6c4c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe('test useDiscoverState', () => {
services: discoverServiceMock,
history,
savedSearch: savedSearchMock,
setExpandedDoc: jest.fn(),
});
});
expect(result.current.state.index).toBe(indexPatternMock.id);
Expand All @@ -53,6 +54,7 @@ describe('test useDiscoverState', () => {
services: discoverServiceMock,
history,
savedSearch: savedSearchMock,
setExpandedDoc: jest.fn(),
});
});
await act(async () => {
Expand All @@ -69,6 +71,7 @@ describe('test useDiscoverState', () => {
services: discoverServiceMock,
history,
savedSearch: savedSearchMock,
setExpandedDoc: jest.fn(),
});
});

Expand Down

0 comments on commit d3b6c4c

Please sign in to comment.