Skip to content

Commit

Permalink
[Graph] fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaanj committed Aug 30, 2021
1 parent 271ed75 commit d65e132
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x-pack/plugins/graph/public/state_management/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,11 @@ export function createMockGraphStore({
} as unknown) as ChromeStart,
createWorkspace: jest.fn(),
getWorkspace: jest.fn(() => workspaceMock),
getSavedWorkspace: jest.fn(() => savedWorkspace),
indexPatternProvider: {
get: jest.fn(() =>
Promise.resolve(({ id: '123', title: 'test-pattern' } as unknown) as IndexPattern)
),
},
indexPatterns: [
({ id: '123', attributes: { title: 'test-pattern' } } as unknown) as IndexPatternSavedObject,
],
I18nContext: jest
.fn()
.mockImplementation(({ children }: { children: React.ReactNode }) => children),
Expand Down

0 comments on commit d65e132

Please sign in to comment.