From 36365fa57c3e1d8e56b26a90ee4bfe42b891bf4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20Loix?= Date: Thu, 8 Sep 2022 12:16:07 +0100 Subject: [PATCH] Fix TS issues --- .../table_list/src/__jest__/tests.helpers.tsx | 4 ++++ packages/content-management/table_list/src/mocks.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/content-management/table_list/src/__jest__/tests.helpers.tsx b/packages/content-management/table_list/src/__jest__/tests.helpers.tsx index 66b4ab75edd67..381e4974b4e36 100644 --- a/packages/content-management/table_list/src/__jest__/tests.helpers.tsx +++ b/packages/content-management/table_list/src/__jest__/tests.helpers.tsx @@ -7,6 +7,8 @@ */ import React from 'react'; import type { ComponentType } from 'react'; +import { from } from 'rxjs'; + import { TableListViewProvider, Services } from '../services'; export const getMockServices = (overrides?: Partial) => { @@ -14,6 +16,8 @@ export const getMockServices = (overrides?: Partial) => { canEditAdvancedSettings: true, getListingLimitSettingsUrl: () => 'http://elastic.co', notifyError: () => undefined, + currentAppId$: from('mockedApp'), + navigateToUrl: () => undefined, ...overrides, }; diff --git a/packages/content-management/table_list/src/mocks.ts b/packages/content-management/table_list/src/mocks.ts index 11775dc0006ab..3c6bb3c68cad1 100644 --- a/packages/content-management/table_list/src/mocks.ts +++ b/packages/content-management/table_list/src/mocks.ts @@ -5,6 +5,8 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ +import { from } from 'rxjs'; + import { Services } from './services'; /** @@ -23,6 +25,8 @@ export const getStoryServices = (params: Params, action: ActionFn = () => {}) => notifyError: (title, text) => { action('notifyError')({ title, text }); }, + currentAppId$: from('mockedApp'), + navigateToUrl: () => undefined, ...params, };