From 68656d0432d83ce49b0bdd2618d71e0d5df5a0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20G=C3=B3mez?= Date: Wed, 2 Feb 2022 13:19:40 +0100 Subject: [PATCH] Replace deprecated `IndexPatternsContract` --- .../components/shared/exploratory_view/rtl_helpers.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx b/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx index 25f713bfbb2a0..3211ed15c55c0 100644 --- a/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx @@ -44,7 +44,7 @@ import * as useValuesListHook from '../../../hooks/use_values_list'; import dataViewData from './configurations/test_data/test_data_view.json'; // eslint-disable-next-line @kbn/eslint/no-restricted-paths import { setIndexPatterns } from '../../../../../../../src/plugins/data/public/services'; -import { DataView, IndexPatternsContract } from '../../../../../../../src/plugins/data/common'; +import { DataView, DataViewsContract } from '../../../../../../../src/plugins/data/common'; import { AppDataType, SeriesUrl, UrlFilter } from './types'; import { createStubDataView } from '../../../../../../../src/plugins/data/common/stubs'; @@ -145,12 +145,12 @@ export function MockKibanaProvider>({ core, kibanaProps, }: MockKibanaProviderProps) { - const indexPattern = mockDataView; + const dataView = mockDataView; setIndexPatterns({ - ...[indexPattern], - get: async () => indexPattern, - } as unknown as IndexPatternsContract); + ...[dataView], + get: async () => dataView, + } as unknown as DataViewsContract); return (