Skip to content

Commit c18fd63

Browse files
committed
Fix naming in binary search tree test.
1 parent b62d9a4 commit c18fd63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data-structures/tree/binary-search-tree/__test__/BinarySearchTree.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('BinarySearchTree', () => {
4848
});
4949

5050
it('should insert object values', () => {
51-
const nodeValueComparatorCallback = (a, b) => {
51+
const nodeValueCompareFunction = (a, b) => {
5252
const normalizedA = a || { value: null };
5353
const normalizedB = b || { value: null };
5454

@@ -63,7 +63,7 @@ describe('BinarySearchTree', () => {
6363
const obj2 = { key: 'obj2', value: 2, toString: () => 'obj2' };
6464
const obj3 = { key: 'obj3', value: 3, toString: () => 'obj3' };
6565

66-
const bst = new BinarySearchTree(nodeValueComparatorCallback);
66+
const bst = new BinarySearchTree(nodeValueCompareFunction);
6767

6868
bst.insert(obj2);
6969
bst.insert(obj3);

0 commit comments

Comments
 (0)