Skip to content

Commit

Permalink
fixed typechecks
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Dec 7, 2020
1 parent 9097aea commit 74d3b5d
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions x-pack/plugins/monitoring/public/alerts/alert_form.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { alertTypeRegistryMock } from '../../../triggers_actions_ui/public/appli
import { ValidationResult, Alert } from '../../../triggers_actions_ui/public/types';
import { AlertForm } from '../../../triggers_actions_ui/public/application/sections/alert_form/alert_form';
import ActionForm from '../../../triggers_actions_ui/public/application/sections/action_connector_form/action_form';
import { AlertsContextProvider } from '../../../triggers_actions_ui/public/application/context/alerts_context';
import { Legacy } from '../legacy_shims';
import { I18nProvider } from '@kbn/i18n/react';
import { createKibanaReactContext } from '../../../../../src/plugins/kibana_react/public';
Expand Down Expand Up @@ -131,18 +130,14 @@ describe('alert_form', () => {
} as unknown) as Alert;

wrapper = mountWithIntl(
<AlertsContextProvider
value={{
...monitoringDependencies,
}}
>
<AlertForm
alert={initialAlert}
dispatch={() => {}}
errors={{ name: [], interval: [] }}
operation="create"
/>
</AlertsContextProvider>
<AlertForm
alert={initialAlert}
dispatch={() => {}}
errors={{ name: [], interval: [] }}
operation="create"
actionTypeRegistry={actionTypeRegistry}
alertTypeRegistry={alertTypeRegistry}
/>
);

await act(async () => {
Expand Down

0 comments on commit 74d3b5d

Please sign in to comment.