Skip to content

Commit 11d6f99

Browse files
Update DiameterOfBinaryTree.test.js
1 parent 4b0e9e9 commit 11d6f99

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Trees/test/DiameterOfBinaryTree.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
*/
44
class TreeNode {
55
constructor(value) {
6-
this.value = value;
7-
this.left = null;
8-
this.right = null;
6+
this.value = value
7+
this.left = null
8+
this.right = null
99
}
1010
}
1111

12-
import { diameterOfBinaryTree } from '../DiameterOfBinaryTree';
13-
12+
import { diameterOfBinaryTree } from '../DiameterOfBinaryTree'
1413

1514
describe('Diameter of a Binary Tree', () => {
1615
it('should calculate the correct diameter for a standard tree', () => {
@@ -57,3 +56,4 @@ describe('Diameter of a Binary Tree', () => {
5756
expect(diameterOfBinaryTree(singleNode)).toBe(0)
5857
})
5958
})
59+

0 commit comments

Comments
 (0)