Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
Browse files Browse the repository at this point in the history
…-ref HEAD~1..HEAD --fix'
  • Loading branch information
kibanamachine committed Oct 19, 2023
1 parent a7ab6dc commit 58a8d3a
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { fireEvent, waitFor } from '@testing-library/dom';
import { cleanup } from '@testing-library/react';
import { createBrowserHistory } from 'history';
import React from 'react';
import { i18n } from '@kbn/i18n';
import Router from 'react-router-dom';

import { paths } from '../../../common/locators/paths';
Expand Down Expand Up @@ -108,9 +109,13 @@ const mockKibana = () => {
get: () => {},
},
triggersActionsUi: {
getAddRuleFlyout: jest
.fn()
.mockReturnValue(<div data-test-subj="add-rule-flyout">Add Rule Flyout</div>),
getAddRuleFlyout: jest.fn().mockReturnValue(
<div data-test-subj="add-rule-flyout">
{i18n.translate('xpack.observability.mockKibana.div.addRuleFlyoutLabel', {
defaultMessage: 'Add Rule Flyout',
})}
</div>
),
},
uiSettings: {
get: () => {},
Expand Down

0 comments on commit 58a8d3a

Please sign in to comment.