Skip to content

Commit

Permalink
Update index.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
manish-dalal committed Nov 27, 2020
1 parent 56f387f commit c80eef5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tree-manager/tests/index.test.js
Expand Up @@ -484,8 +484,7 @@ test('should get matching nodes when using custom search predicate', t => {
},
],
}
const searchPredicate = (node, term) =>
node.customField && node.customField.toLowerCase().indexOf(term.toLowerCase()) >= 0
const searchPredicate = (node, term) => node.customField && node.customField.toLowerCase().indexOf(term.toLowerCase()) >= 0
const manager = new TreeManager({ data: tree, searchPredicate })
const { allNodesHidden, tree: matchTree } = manager.filterTree('tEaPoT')
t.false(allNodesHidden)
Expand Down

0 comments on commit c80eef5

Please sign in to comment.