Skip to content

Commit

Permalink
EMT-67: fix test type
Browse files Browse the repository at this point in the history
  • Loading branch information
nnamdifrankie committed Feb 3, 2020
1 parent 93cc54d commit 6d436b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions x-pack/test/api_integration/apis/endpoint/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>) => 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);
Expand Down

0 comments on commit 6d436b6

Please sign in to comment.