Skip to content

Commit

Permalink
fix rendering service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Apr 23, 2024
1 parent 207825c commit b86d1e5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { elasticsearchServiceMock } from '@kbn/core-elasticsearch-server-mocks';
import { statusServiceMock } from '@kbn/core-status-server-mocks';
import { customBrandingServiceMock } from '@kbn/core-custom-branding-server-mocks';
import { userSettingsServiceMock } from '@kbn/core-user-settings-server-mocks';
import { i18nServiceMock } from '@kbn/core-i18n-server-mocks';

const context = mockCoreContext.create();
const httpPreboot = httpServiceMock.createInternalPrebootContract();
Expand All @@ -33,6 +34,7 @@ export const mockRenderingServiceParams = context;
export const mockRenderingPrebootDeps = {
http: httpPreboot,
uiPlugins: createUiPlugins(),
i18n: i18nServiceMock.createInternalPrebootContract(),
};
export const mockRenderingSetupDeps = {
elasticsearch,
Expand All @@ -41,4 +43,5 @@ export const mockRenderingSetupDeps = {
customBranding,
status,
userSettings,
i18n: i18nServiceMock.createSetupContract(),
};

0 comments on commit b86d1e5

Please sign in to comment.