Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
CoenWarmer committed Apr 5, 2024
1 parent 3ac8172 commit 819ff0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,13 @@ export const MetricsPageTemplate: React.FC<MetricsPageTemplateProps> = ({

useEffect(() => {
return setScreenContext?.({
screenDescription: source
? `The configuration of Metrics is ${JSON.stringify(source.configuration)}`
: '',
data: [
{
name: 'Metrics configuration',
value: source,
description: 'The configuration of the Metrics app',
},
],
starterPrompts: [
...(!hasData
? [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jest.mock('../../utils/kibana_react', () => ({
})),
}));

jest.mock('../../hooks/use_get_available_rules_with_descriptions', () => ({
useGetAvailableRulesWithDescriptions: jest.fn(),
}));

jest.mock('@kbn/observability-shared-plugin/public');

jest.mock('@kbn/triggers-actions-ui-plugin/public', () => ({
Expand Down

0 comments on commit 819ff0c

Please sign in to comment.