mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Fix ts errors
This commit is contained in:
parent
36630398f7
commit
707ece79fc
2 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,7 @@ import {
|
|||
import { coreMock } from '@kbn/core/public/mocks';
|
||||
import { inspectorPluginMock } from '@kbn/inspector-plugin/public/mocks';
|
||||
import { uiActionsPluginMock } from '@kbn/ui-actions-plugin/public/mocks';
|
||||
import { spacesPluginMock } from '@kbn/spaces-plugin/public/mocks';
|
||||
import { type AggregateQuery, type Filter, type Query } from '@kbn/es-query';
|
||||
import { SavedObjectsTaggingApi } from '@kbn/saved-objects-tagging-oss-plugin/public';
|
||||
import { savedObjectsManagementPluginMock } from '@kbn/saved-objects-management-plugin/public/mocks';
|
||||
|
@ -144,6 +145,7 @@ const createInstance = (setupPlugins: Partial<EmbeddableSetupDependencies> = {})
|
|||
usageCollection: { reportUiCounter: jest.fn() },
|
||||
contentManagement:
|
||||
startPlugins.contentManagement || contentManagementMock.createStartContract(),
|
||||
spaces: startPlugins.spaces || spacesPluginMock.createStartContract(),
|
||||
});
|
||||
return {
|
||||
plugin,
|
||||
|
@ -171,5 +173,6 @@ export const setStubKibanaServices = () => {
|
|||
savedObjectsManagement: savedObjectsManagementPluginMock.createStartContract(),
|
||||
usageCollection: { reportUiCounter: jest.fn() },
|
||||
contentManagement: contentManagementMock.createStartContract(),
|
||||
spaces: spacesPluginMock.createStartContract(),
|
||||
});
|
||||
};
|
||||
|
|
|
@ -18,6 +18,7 @@ import {
|
|||
import { Query } from '@kbn/es-query';
|
||||
import { SavedObjectsTaggingApi } from '@kbn/saved-objects-tagging-oss-plugin/public';
|
||||
import { contentManagementMock } from '@kbn/content-management-plugin/public/mocks';
|
||||
import { spacesPluginMock } from '@kbn/spaces-plugin/public/mocks';
|
||||
import { EmbeddablePublicPlugin, EmbeddableSetup, EmbeddableStart } from '../plugin';
|
||||
export interface TestPluginReturn {
|
||||
plugin: EmbeddablePublicPlugin;
|
||||
|
@ -68,6 +69,7 @@ export const testPlugin = (
|
|||
savedObjectsManagementMock as unknown as SavedObjectsManagementPluginStart,
|
||||
usageCollection: { reportUiCounter: jest.fn() },
|
||||
contentManagement: contentManagementMock.createStartContract(),
|
||||
spaces: spacesPluginMock.createStartContract(),
|
||||
});
|
||||
return start;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue