remove unnecassry ts-expect-error in kbn-es-query

This commit is contained in:
restrry 2021-11-03 18:28:40 +01:00
parent 70e1ffc7c5
commit 5cd4aafc8f

View file

@ -109,7 +109,6 @@ describe('kuery functions', () => {
const node = nodeTypes.function.buildNode('geoBoundingBox', 'geo', params);
const result = geoBoundingBox.toElasticsearchQuery(node, indexPattern);
// @ts-expect-error @elastic/elasticsearch doesn't support ignore_unmapped in QueryDslGeoBoundingBoxQuery
expect(result.geo_bounding_box!.ignore_unmapped).toBe(true);
});