Skip to content

Commit

Permalink
test types
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Jun 27, 2021
1 parent 08a5c85 commit a0696b5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ describe('handleNestedFilter', function () {
});

it('should return filter untouched if it does not target a field from the given index pattern', () => {
const field = { ...getField('extension'), name: 'notarealfield' };
const filter = buildPhraseFilter(field, 'jpg', indexPattern);
const field = getField('extension');
field!.name = 'notarealfield';
const filter = buildPhraseFilter(field!, 'jpg', indexPattern);
const result = handleNestedFilter(filter, indexPattern);
expect(result).toBe(filter);
});
Expand Down

0 comments on commit a0696b5

Please sign in to comment.