Skip to content

Commit

Permalink
fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Feb 20, 2020
1 parent 9e0a4c6 commit b0a7626
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export interface HomeKibanaServices {
addBasePath: (url: string) => string;
environment: Environment;
tutorialVariables: TutorialStart['get'];
getInjected: (name: string, defaultValue?: any) => unknown;
}

let services: HomeKibanaServices | null = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jest.mock('../../kibana_services', () => ({
getServices: () => ({
getBasePath: () => 'path',
tutorialVariables: () => ({}),
getInjected: () => '',
}),
}));

Expand Down
1 change: 1 addition & 0 deletions src/legacy/core_plugins/kibana/public/home/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export class HomePlugin implements Plugin {
indexPatternService: this.dataStart!.indexPatterns,
environment: this.environment!,
tutorialVariables: homeStart.tutorials.get,
getInjected: core.injectedMetadata.getInjectedVar,
...angularDependencies,
});
const { renderApp } = await import('./np_ready/application');
Expand Down

0 comments on commit b0a7626

Please sign in to comment.