Skip to content

Commit 4ab94a2

Browse files
committed
test: πŸ’ update test mocks
1 parent dd23a31 commit 4ab94a2

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

β€Žx-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_chart_action.test.tsβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ const setup = (
5555
navigate: jest.fn(async () => {}),
5656
getUrl: jest.fn(),
5757
useUrl: jest.fn(),
58+
extract: jest.fn(),
59+
inject: jest.fn(),
60+
telemetry: jest.fn(),
61+
migrations: {},
5862
};
5963

6064
const plugins: PluginDeps = {

β€Žx-pack/plugins/discover_enhanced/public/actions/explore_data/explore_data_context_menu_action.test.tsβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ const setup = ({ dashboardOnlyMode = false }: { dashboardOnlyMode?: boolean } =
4141
navigate: jest.fn(async () => {}),
4242
getUrl: jest.fn(),
4343
useUrl: jest.fn(),
44+
extract: jest.fn(),
45+
inject: jest.fn(),
46+
telemetry: jest.fn(),
47+
migrations: {},
4448
};
4549

4650
const plugins: PluginDeps = {

0 commit comments

Comments
Β (0)