Skip to content

Commit

Permalink
tslint integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Feb 24, 2023
1 parent 03f5749 commit 3752de2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x-pack/test/api_integration/apis/maps/maps_telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

import expect from '@kbn/expect';
import { estypes } from '@elastic/elasticsearch';
import { FtrProviderContext } from '../../ftr_provider_context';

export default function ({ getService }: FtrProviderContext) {
Expand All @@ -25,15 +26,15 @@ export default function ({ getService }: FtrProviderContext) {
.expect(200);

const geoPointFieldStats = apiResponse.cluster_stats.indices.mappings.field_types.find(
(fieldStat) => {
(fieldStat: estypes.ClusterStatsFieldTypes) => {
return fieldStat.name === 'geo_point';
}
);
expect(geoPointFieldStats.count).to.be(7);
expect(geoPointFieldStats.index_count).to.be(6);

const geoShapeFieldStats = apiResponse.cluster_stats.indices.mappings.field_types.find(
(fieldStat) => {
(fieldStat: estypes.ClusterStatsFieldTypes) => {
return fieldStat.name === 'geo_shape';
}
);
Expand Down

0 comments on commit 3752de2

Please sign in to comment.