Skip to content

Commit

Permalink
fix jest
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Jun 28, 2021
1 parent 3342d1b commit 7984b50
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ describe('handleNestedFilter', function () {

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

0 comments on commit 7984b50

Please sign in to comment.