From d65e132d2c8077db361219b3341e234ce3e4bf94 Mon Sep 17 00:00:00 2001 From: Dzmitry Tamashevich Date: Mon, 30 Aug 2021 11:45:36 +0300 Subject: [PATCH] [Graph] fix types --- x-pack/plugins/graph/public/state_management/mocks.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x-pack/plugins/graph/public/state_management/mocks.ts b/x-pack/plugins/graph/public/state_management/mocks.ts index b1c71a1e31e27..fbd3d474dbcef 100644 --- a/x-pack/plugins/graph/public/state_management/mocks.ts +++ b/x-pack/plugins/graph/public/state_management/mocks.ts @@ -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),