From 2fe97cd4f10ca5b30976142a96beceb7c3c443c3 Mon Sep 17 00:00:00 2001 From: nnamdifrankie Date: Sun, 15 Mar 2020 20:25:54 -0400 Subject: [PATCH] EMT-248: fix build --- x-pack/test/api_integration/apis/fleet/agents/acks.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/test/api_integration/apis/fleet/agents/acks.ts b/x-pack/test/api_integration/apis/fleet/agents/acks.ts index e0768bc54bbc9..e451c93979eb4 100644 --- a/x-pack/test/api_integration/apis/fleet/agents/acks.ts +++ b/x-pack/test/api_integration/apis/fleet/agents/acks.ts @@ -101,13 +101,13 @@ export default function(providerContext: FtrProviderContext) { ) .expect(200); const expectedEvents = eventResponse.list.filter( - item => + (item: Record) => item.action_id === '48cebde1-c906-4893-b89f-595d943b72a1' || item.action_id === '48cebde1-c906-4893-b89f-595d943b72a2' ); expect(expectedEvents.length).to.eql(2); - const expectedEvent = eventResponse.list.find( - item => item.action_id === '48cebde1-c906-4893-b89f-595d943b72a1' + const expectedEvent = expectedEvents.find( + (item: Record) => item.action_id === '48cebde1-c906-4893-b89f-595d943b72a1' ); expect(expectedEvent).to.eql({ type: 'ACTION_RESULT',