Skip to content

Commit bd37bb0

Browse files
authored
Fix test by adding missing arguments
1 parent 950a021 commit bd37bb0

File tree

1 file changed

+6
-1
lines changed
  • src/_Problems_/lowest-common-ancestor-in-binary-search-tree

1 file changed

+6
-1
lines changed

src/_Problems_/lowest-common-ancestor-in-binary-search-tree/index.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ const { lca } = require('.');
22

33
describe('LCA', () => {
44
it('Should return 12', () => {
5-
expect(lca({"left":{"left":{"data":4},"right":{"left":{"data":10},"right":{"data":14},"data":12},"data":8},"right":{"data":22},"data":20}).data).toEqual(12);
5+
expect(
6+
lca(
7+
{"left":{"left":{"data":4},"right":{"left":{"data":10},"right":{"data":14},"data":12},"data":8},"right":{"data":22},"data":20}
8+
, 10
9+
, 14)
10+
.data).toEqual(12);
611
});
712
});
813

0 commit comments

Comments
 (0)