Skip to content

Commit

Permalink
style: fix eslint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
amejiarosario committed Aug 23, 2019
1 parent ebb7be8 commit 72e3d68
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#fbed80",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#06b9a5",
"activityBarBadge.foreground": "#15202b",
"titleBar.activeBackground": "#f9e64f",
"titleBar.inactiveBackground": "#f9e64f99",
"titleBar.activeForeground": "#15202b",
"titleBar.inactiveForeground": "#15202b99"
}
"titleBar.inactiveForeground": "#15202b99",
"statusBar.background": "#f9e64f",
"statusBarItem.hoverBackground": "#f7df1e",
"statusBar.foreground": "#15202b"
},
"peacock.color": "#f9e64f"
}
6 changes: 4 additions & 2 deletions src/data-structures/trees/avl-tree.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,14 @@ describe('AvlTree', () => {
});

it('should have all nodes', () => {
expect(tree.toArray()).toEqual([16, 4, 32, 2, 8, null, null, null, null, null, null]);
expect(tree.toArray()).toEqual([16, 4, 32, 2, 8,
null, null, null, null, null, null]);
});

it('should rebalance and keep all nodes', () => {
tree.add(1);
expect(tree.toArray()).toEqual([4, 2, 16, 1, null, 8, 32, null, null, null, null, null, null]);
expect(tree.toArray()).toEqual([4, 2, 16, 1, null, 8, 32,
null, null, null, null, null, null]);
});
});
});

0 comments on commit 72e3d68

Please sign in to comment.