From f57bbe1ce02cfc9f8111808af12c82c6a0a3582d Mon Sep 17 00:00:00 2001 From: Paul Tavares Date: Sat, 22 Jul 2023 12:30:57 -0400 Subject: [PATCH] fix jest test --- .../server/lib/app_features/app_features.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/security_solution/server/lib/app_features/app_features.test.ts b/x-pack/plugins/security_solution/server/lib/app_features/app_features.test.ts index 4484965b75573b..5de9c57e2938f6 100644 --- a/x-pack/plugins/security_solution/server/lib/app_features/app_features.test.ts +++ b/x-pack/plugins/security_solution/server/lib/app_features/app_features.test.ts @@ -6,9 +6,9 @@ */ import { AppFeatures } from '.'; -import type { Logger } from '@kbn/core/server'; import type { AppFeatureKeys, ExperimentalFeatures } from '../../../common'; import type { PluginSetupContract } from '@kbn/features-plugin/server'; +import { loggingSystemMock } from '@kbn/core-logging-server-mocks'; const SECURITY_BASE_CONFIG = { foo: 'foo', @@ -85,7 +85,7 @@ describe('AppFeatures', () => { const appFeatureKeys = ['test-base-feature'] as unknown as AppFeatureKeys; const appFeatures = new AppFeatures( - {} as unknown as Logger, + loggingSystemMock.create().get('mock'), [] as unknown as ExperimentalFeatures ); appFeatures.init(featuresSetup); @@ -106,7 +106,7 @@ describe('AppFeatures', () => { const appFeatureKeys = ['test-cases-feature'] as unknown as AppFeatureKeys; const appFeatures = new AppFeatures( - {} as unknown as Logger, + loggingSystemMock.create().get('mock'), [] as unknown as ExperimentalFeatures ); appFeatures.init(featuresSetup);