Skip to content

Commit

Permalink
fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Jul 6, 2021
1 parent 596c1b7 commit 4f0044c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions x-pack/test/api_integration/apis/ml/indices/field_caps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export default ({ getService }: FtrProviderContext) => {
const fieldsLength = Object.keys(fields).length;
expect(fieldsLength).to.eql(2, `Expected number of fields to be 2, but got ${fieldsLength}`);
expect(fields.airline.keyword.type).to.eql('keyword', 'Expected airline type to be keyword');
expect(fields.responsetime.float.type).to.eql('float', 'Expected airline type to be float');
expect(fields.responsetime.float.type).to.eql(
'float',
'Expected responsetime type to be float'
);
});

it('all fields in index', async () => {
Expand All @@ -58,7 +61,10 @@ export default ({ getService }: FtrProviderContext) => {
`Expected number of indices to be 1, but got ${indices.length}`
);
const fieldsLength = Object.keys(fields).length;
expect(fieldsLength).to.eql(21, `Expected number of fields to be 2, but got ${fieldsLength}`);
expect(fieldsLength).to.eql(
21,
`Expected number of fields to be 21, but got ${fieldsLength}`
);
});
});
};

0 comments on commit 4f0044c

Please sign in to comment.