Skip to content

Commit

Permalink
Fix jest test
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Mar 21, 2023
1 parent 01d63be commit 7ac10aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('test useInspector', () => {
let adapters: Adapters | undefined;
jest.spyOn(discoverServiceMock.inspector, 'open').mockImplementation((localAdapters) => {
adapters = localAdapters;
return {} as OverlayRef;
return { close: jest.fn() } as unknown as OverlayRef;
});
const requests = new RequestAdapter();
const lensRequests = new RequestAdapter();
Expand All @@ -32,7 +32,7 @@ describe('test useInspector', () => {
inspectorAdapters: { requests, lensRequests },
savedSearch: savedSearchMock,
inspector: discoverServiceMock.inspector,
stateContainer: getDiscoverStateMock({ isTimeBased: true }),
stateContainer,
});
});
await act(async () => {
Expand Down

0 comments on commit 7ac10aa

Please sign in to comment.