From 5120167457b9aab262a43f3167698727bab1efa9 Mon Sep 17 00:00:00 2001 From: Marco Antonio Ghiani Date: Wed, 19 Apr 2023 17:33:21 +0200 Subject: [PATCH] test(infra): update broken test --- .../services/inventory_views/inventory_views_client.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/infra/server/services/inventory_views/inventory_views_client.test.ts b/x-pack/plugins/infra/server/services/inventory_views/inventory_views_client.test.ts index 7ae01af1e6267..f11df3fe41893 100644 --- a/x-pack/plugins/infra/server/services/inventory_views/inventory_views_client.test.ts +++ b/x-pack/plugins/infra/server/services/inventory_views/inventory_views_client.test.ts @@ -19,7 +19,7 @@ import { createInventoryViewMock } from '../../../common/inventory_views/invento describe('InventoryViewsClient class', () => { const mockFindInventoryList = (savedObjectsClient: jest.Mocked) => { const inventoryViewListMock = [ - createInventoryViewMock('static', { + createInventoryViewMock('0', { isDefault: true, } as InventoryViewAttributes), createInventoryViewMock('default_id', { @@ -67,7 +67,7 @@ describe('InventoryViewsClient class', () => { createInventoryViewsClient(); const inventoryViewListMock = [ - createInventoryViewMock('static', { + createInventoryViewMock('0', { isDefault: true, } as InventoryViewAttributes), ]; @@ -244,7 +244,7 @@ const basicTestSourceConfiguration: InfraSource = { message: [], }, metricAlias: 'METRIC_ALIAS', - inventoryDefaultView: 'static', + inventoryDefaultView: '0', metricsExplorerDefaultView: 'METRICS_EXPLORER_DEFAULT_VIEW', anomalyThreshold: 0, },