From d35d0d3abdb9e36c0f0f708b1d1a83111ff1e265 Mon Sep 17 00:00:00 2001 From: Maxim Palenov Date: Tue, 11 Oct 2022 17:46:48 +0300 Subject: [PATCH] fix types mismatch --- .../detections/containers/detection_engine/rules/api.test.ts | 2 +- .../pages/detection_engine/rules/all/actions.test.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detections/containers/detection_engine/rules/api.test.ts b/x-pack/plugins/security_solution/public/detections/containers/detection_engine/rules/api.test.ts index a0a99ca00f130..29d8341158f5a 100644 --- a/x-pack/plugins/security_solution/public/detections/containers/detection_engine/rules/api.test.ts +++ b/x-pack/plugins/security_solution/public/detections/containers/detection_engine/rules/api.test.ts @@ -6,7 +6,7 @@ */ import { buildEsQuery } from '@kbn/es-query'; -import { BulkActionEditType } from '@kbn/security-solution-plugin/common/detection_engine/schemas/request'; +import { BulkActionEditType } from '../../../../../common/detection_engine/schemas/request'; import { KibanaServices } from '../../../../common/lib/kibana'; import { getRulesSchemaMock } from '../../../../../common/detection_engine/schemas/response/rules_schema.mocks'; import { diff --git a/x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/actions.test.ts b/x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/actions.test.ts index 910a60d7c65ee..dadb8237c2c89 100644 --- a/x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/actions.test.ts +++ b/x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/all/actions.test.ts @@ -7,6 +7,7 @@ import { performBulkAction } from '../../../../containers/detection_engine/rules'; import { METRIC_TYPE, TELEMETRY_EVENT, track } from '../../../../../common/lib/telemetry'; +import { BulkAction } from '../../../../../../common/detection_engine/schemas/request'; import { performTrackableBulkAction } from './actions'; @@ -59,13 +60,13 @@ describe('Rule Actions', () => { }); test('sends enable action telemetry', async () => { - await performTrackableBulkAction('enable', 'some query'); + await performTrackableBulkAction(BulkAction.enable, 'some query'); expect(track).toHaveBeenCalledWith(METRIC_TYPE.COUNT, TELEMETRY_EVENT.CUSTOM_RULE_ENABLED); }); test('sends disable action telemetry', async () => { - await performTrackableBulkAction('disable', 'some query'); + await performTrackableBulkAction(BulkAction.disable, 'some query'); expect(track).toHaveBeenCalledWith(METRIC_TYPE.COUNT, TELEMETRY_EVENT.CUSTOM_RULE_DISABLED); });