File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
x-pack/plugins/security_solution/public
common/components/exceptions
detections/containers/detection_engine/rules Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ import { ThemeProvider } from 'styled-components';
99import { mountWithIntl } from 'test_utils/enzyme_helpers' ;
1010import euiLightVars from '@elastic/eui/dist/eui_theme_light.json' ;
1111
12+ import { coreMock } from '../../../../../../../src/core/public/mocks' ;
1213import { getListMock } from '../../../../common/detection_engine/schemas/types/lists.mock' ;
1314import { useDissasociateExceptionList } from '../../../detections/containers/detection_engine/rules/use_dissasociate_exception_list' ;
14- import { createKibanaCoreStartMock } from '../../mock/kibana_core' ;
1515import { ErrorCallout } from './error_callout' ;
1616import { savedRuleMock } from '../../../detections/containers/detection_engine/rules/mock' ;
1717
1818jest . mock ( '../../../detections/containers/detection_engine/rules/use_dissasociate_exception_list' ) ;
1919
20- const mockKibanaHttpService = createKibanaCoreStartMock ( ) . http ;
20+ const mockKibanaHttpService = coreMock . createStart ( ) . http ;
2121
2222describe ( 'ErrorCallout' , ( ) => {
2323 const mockDissasociate = jest . fn ( ) ;
Original file line number Diff line number Diff line change 66
77import { act , renderHook } from '@testing-library/react-hooks' ;
88
9- import { createKibanaCoreStartMock } from '../../../../common/mock/kibana_core ' ;
9+ import { coreMock } from '../../../../../../../../src/core/public/mocks ' ;
1010
1111import * as api from './api' ;
1212import { ruleMock } from './mock' ;
@@ -16,7 +16,7 @@ import {
1616 useDissasociateExceptionList ,
1717} from './use_dissasociate_exception_list' ;
1818
19- const mockKibanaHttpService = createKibanaCoreStartMock ( ) . http ;
19+ const mockKibanaHttpService = coreMock . createStart ( ) . http ;
2020
2121describe ( 'useDissasociateExceptionList' , ( ) => {
2222 const onError = jest . fn ( ) ;
You can’t perform that action at this time.
0 commit comments