From 6f3f8023977faeeecda2f7f609458b4a582e34d5 Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Thu, 14 Nov 2019 14:01:56 +0100 Subject: [PATCH] add karma mocks --- .../ui/public/new_platform/new_platform.karma_mock.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/legacy/ui/public/new_platform/new_platform.karma_mock.js b/src/legacy/ui/public/new_platform/new_platform.karma_mock.js index bb055d6ce1e33..cc0d7e24df420 100644 --- a/src/legacy/ui/public/new_platform/new_platform.karma_mock.js +++ b/src/legacy/ui/public/new_platform/new_platform.karma_mock.js @@ -62,6 +62,9 @@ export const npSetup = { } }, }, + share: { + register: () => {}, + }, inspector: { registerView: () => undefined, __LEGACY: { @@ -156,6 +159,9 @@ export const npStart = { }, }, }, + share: { + toggleShareContextMenu: () => {}, + }, inspector: { isAvailable: () => false, open: () => ({