Skip to content

Commit

Permalink
Add docLinksServiceMock to test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Mar 25, 2021
1 parent bd27761 commit 8896c8f
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

import React from 'react';
import { GlobalFlyout } from '../../../../../../../../../../src/plugins/es_ui_shared/public';
import { uiSettingsServiceMock } from '../../../../../../../../../../src/core/public/mocks';
import {
docLinksServiceMock,
uiSettingsServiceMock,
} from '../../../../../../../../../../src/core/public/mocks';
import { MappingsEditorProvider } from '../../../mappings_editor_context';
import { createKibanaReactContext } from '../../../shared_imports';

Expand Down Expand Up @@ -80,14 +83,7 @@ const { Provider: KibanaReactContextProvider } = createKibanaReactContext({
});

const defaultProps = {
docLinks: {
DOC_LINK_VERSION: 'master',
ELASTIC_WEBSITE_URL: 'https://jest.elastic.co',
links: {
runtimeFields: { mapping: 'https://jestTest.elastic.co/to-be-defined.html' },
scriptedFields: { painlessLangSpec: 'https://jestTest.elastic.co/to-be-defined.html' },
},
},
docLinks: docLinksServiceMock.createStartContract(),
};

export const WithAppDependencies = (Comp: any) => (props: any) => (
Expand Down

0 comments on commit 8896c8f

Please sign in to comment.