From 6d436b6b0fdc98b8910d11522c76e2950e877fc4 Mon Sep 17 00:00:00 2001 From: nnamdifrankie Date: Mon, 3 Feb 2020 14:58:21 -0500 Subject: [PATCH] EMT-67: fix test type --- x-pack/test/api_integration/apis/endpoint/endpoints.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/x-pack/test/api_integration/apis/endpoint/endpoints.ts b/x-pack/test/api_integration/apis/endpoint/endpoints.ts index 1b0f63d85e5233..210e9d78d7e181 100644 --- a/x-pack/test/api_integration/apis/endpoint/endpoints.ts +++ b/x-pack/test/api_integration/apis/endpoint/endpoints.ts @@ -133,9 +133,11 @@ export default function({ getService }: FtrProviderContext) { }) .expect(200); expect(body.total).to.eql(2); - const availableIps = [].concat(...body.endpoints.map(metadata => metadata.host.ip)); - expect(availableIps).to.eql(['10.192.213.130', '10.70.28.129', '10.46.229.234']); - expect(availableIps).not.include.eql(notIncludedIp); + const resultIps: string[] = [].concat( + ...body.endpoints.map((metadata: Record) => metadata.host.ip) + ); + expect(resultIps).to.eql(['10.192.213.130', '10.70.28.129', '10.46.229.234']); + expect(resultIps).not.include.eql(notIncludedIp); expect(body.endpoints.length).to.eql(2); expect(body.request_page_size).to.eql(10); expect(body.request_page_index).to.eql(0);