Skip to content

Commit a0696b5

Browse files
author
Liza K
committed
test types
1 parent 08a5c85 commit a0696b5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/plugins/data/common/es_query/es_query/handle_nested_filter.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ describe('handleNestedFilter', function () {
4444
});
4545

4646
it('should return filter untouched if it does not target a field from the given index pattern', () => {
47-
const field = { ...getField('extension'), name: 'notarealfield' };
48-
const filter = buildPhraseFilter(field, 'jpg', indexPattern);
47+
const field = getField('extension');
48+
field!.name = 'notarealfield';
49+
const filter = buildPhraseFilter(field!, 'jpg', indexPattern);
4950
const result = handleNestedFilter(filter, indexPattern);
5051
expect(result).toBe(filter);
5152
});

0 commit comments

Comments
 (0)