Skip to content

Commit

Permalink
EMT-184: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nnamdifrankie committed Feb 20, 2020
1 parent 0af1b94 commit af63c1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x-pack/test/api_integration/apis/endpoint/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,17 @@ export default function({ getService }: FtrProviderContext) {
})
.expect(200);
expect(body.total).to.eql(1);
const resultIp: string = body.endpoints[0].host.ip.filter(ip => ip === targetEndpointIp);
const resultIp: string = body.endpoints[0].host.ip.filter(
(ip: string) => ip === targetEndpointIp
);
expect(resultIp).to.eql([targetEndpointIp]);
expect(body.endpoints[0].event.created).to.eql('2020-01-24T16:06:09.541Z');
expect(body.endpoints.length).to.eql(1);
expect(body.request_page_size).to.eql(10);
expect(body.request_page_index).to.eql(0);
});

it('metadata api should return the all endpoints when filter is empty string', async () => {
it('metadata api should return all endpoints when filter is empty string', async () => {
const { body } = await supertest
.post('/api/endpoint/metadata')
.set('kbn-xsrf', 'xxx')
Expand Down

0 comments on commit af63c1c

Please sign in to comment.