Skip to content

Commit 56f387f

Browse files
authored
Fix test
1 parent d3f7dcb commit 56f387f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tree-manager/tests/index.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,8 @@ test('should get matching nodes when using custom search predicate', t => {
484484
},
485485
],
486486
}
487-
const searchPredicate = (node, term) => node.customField && node.customField.toLowerCase().indexOf(term) >= 0
487+
const searchPredicate = (node, term) =>
488+
node.customField && node.customField.toLowerCase().indexOf(term.toLowerCase()) >= 0
488489
const manager = new TreeManager({ data: tree, searchPredicate })
489490
const { allNodesHidden, tree: matchTree } = manager.filterTree('tEaPoT')
490491
t.false(allNodesHidden)

0 commit comments

Comments
 (0)