From 1cc28d4b0068b954de0f3a052e5483aa61c0ad65 Mon Sep 17 00:00:00 2001 From: Walter Rafelsberger Date: Thu, 30 Jun 2022 14:29:43 +0200 Subject: [PATCH] [ML] Fix test. --- .../server/routes/queries/fetch_field_candidates.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/x-pack/plugins/aiops/server/routes/queries/fetch_field_candidates.test.ts b/x-pack/plugins/aiops/server/routes/queries/fetch_field_candidates.test.ts index 467a24c8993e4..24bbda6a5d22e 100644 --- a/x-pack/plugins/aiops/server/routes/queries/fetch_field_candidates.test.ts +++ b/x-pack/plugins/aiops/server/routes/queries/fetch_field_candidates.test.ts @@ -95,9 +95,7 @@ describe('query_field_candidates', () => { const resp = await fetchFieldCandidates(esClientMock, params); - expect(resp).toEqual({ - fieldCandidates: ['myIpFieldName', 'myKeywordFieldName'], - }); + expect(resp).toEqual(['myIpFieldName', 'myKeywordFieldName']); expect(esClientFieldCapsMock).toHaveBeenCalledTimes(1); expect(esClientSearchMock).toHaveBeenCalledTimes(1); });