Skip to content

Commit be3c36f

Browse files
committed
Fix tests to be compatible with 7.8
1 parent 8a3672f commit be3c36f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form

x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_form.test.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* or more contributor license agreements. Licensed under the Elastic License;
44
* you may not use this file except in compliance with the Elastic License.
55
*/
6-
import React, { Fragment, lazy } from 'react';
6+
import React, { Fragment } from 'react';
77
import { mountWithIntl, nextTick } from 'test_utils/enzyme_helpers';
88
import { coreMock } from '../../../../../../../src/core/public/mocks';
99
import { ReactWrapper } from 'enzyme';
@@ -19,11 +19,7 @@ const actionTypeRegistry = actionTypeRegistryMock.create();
1919
describe('action_form', () => {
2020
let deps: any;
2121

22-
const mockedActionParamsFields = lazy(async () => ({
23-
default() {
24-
return <Fragment />;
25-
},
26-
}));
22+
const mockedActionParamsFields = () => <Fragment />;
2723

2824
const alertType = {
2925
id: 'my-alert-type',

0 commit comments

Comments
 (0)