Skip to content

Commit 5823d74

Browse files
committed
fixed old mock references
1 parent 2ccc97e commit 5823d74

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

x-pack/plugins/security_solution/public/common/components/exceptions/error_callout.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import { ThemeProvider } from 'styled-components';
99
import { mountWithIntl } from 'test_utils/enzyme_helpers';
1010
import euiLightVars from '@elastic/eui/dist/eui_theme_light.json';
1111

12+
import { coreMock } from '../../../../../../../src/core/public/mocks';
1213
import { getListMock } from '../../../../common/detection_engine/schemas/types/lists.mock';
1314
import { useDissasociateExceptionList } from '../../../detections/containers/detection_engine/rules/use_dissasociate_exception_list';
14-
import { createKibanaCoreStartMock } from '../../mock/kibana_core';
1515
import { ErrorCallout } from './error_callout';
1616
import { savedRuleMock } from '../../../detections/containers/detection_engine/rules/mock';
1717

1818
jest.mock('../../../detections/containers/detection_engine/rules/use_dissasociate_exception_list');
1919

20-
const mockKibanaHttpService = createKibanaCoreStartMock().http;
20+
const mockKibanaHttpService = coreMock.createStart().http;
2121

2222
describe('ErrorCallout', () => {
2323
const mockDissasociate = jest.fn();

x-pack/plugins/security_solution/public/detections/containers/detection_engine/rules/use_dissasociate_exception_list.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { 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

1111
import * as api from './api';
1212
import { 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

2121
describe('useDissasociateExceptionList', () => {
2222
const onError = jest.fn();

0 commit comments

Comments
 (0)