From 349f4481839ef245f5041d714b4b553c0d556b03 Mon Sep 17 00:00:00 2001 From: Nikita Indik Date: Tue, 17 Dec 2024 11:06:17 +0100 Subject: [PATCH] Delete duplicated test file --- .../components/ml_job_select/index.test.tsx | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/ml_job_select/index.test.tsx diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/ml_job_select/index.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/ml_job_select/index.test.tsx deleted file mode 100644 index ddbb6c8b70708..0000000000000 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/ml_job_select/index.test.tsx +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import React from 'react'; -import { shallow } from 'enzyme'; - -import { MlJobSelect } from '.'; -import { useSecurityJobs } from '../../../../common/components/ml_popover/hooks/use_security_jobs'; -import { useFormFieldMock } from '../../../../common/mock'; -jest.mock('../../../../common/components/ml_popover/hooks/use_security_jobs'); -jest.mock('../../../../common/lib/kibana'); - -describe('MlJobSelect', () => { - beforeAll(() => { - (useSecurityJobs as jest.Mock).mockReturnValue({ loading: false, jobs: [] }); - }); - - it('renders correctly', () => { - const Component = () => { - const field = useFormFieldMock(); - - return ; - }; - const wrapper = shallow(); - - expect(wrapper.dive().find('[data-test-subj="mlJobSelect"]')).toHaveLength(1); - }); -});