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); });