Skip to content

Commit

Permalink
fixed weird undefined leaf deepEqual check
Browse files Browse the repository at this point in the history
  • Loading branch information
Moshe Kolodny committed Oct 18, 2015
1 parent 3ae1874 commit d3fbd30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions invert-tree/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ describe('invert-tree', function() {

invertTree(root);

root = JSON.parse(JSON.stringify(root));

assert.deepEqual(root, {
"value": 4,
"left": {
Expand All @@ -71,6 +73,8 @@ describe('invert-tree', function() {

invertTree(root);

root = JSON.parse(JSON.stringify(root));

assert.deepEqual(root, {
"value": 5,
"right": {
Expand Down

0 comments on commit d3fbd30

Please sign in to comment.