Skip to content

Commit 7e25ec7

Browse files
authored
Merge pull request #15 from oslabs-beta/d3-test
D3 test cases complete
2 parents fa27eb2 + 621777e commit 7e25ec7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/app/__tests__/Chart.test.jsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Unit Test Cases for Charts
2+
// description: lifecycle methods
3+
// Component should call make3dTree upon mounting
4+
// object 'root' should be a deep clone of the snapshot
5+
// i.e.: this.props.snapshot !== root
6+
7+
// description: maked3Tree
8+
// Should call function 'removed3tree' only once
9+
// Should call appropriate function upon triggering a certain event on the tooltip div
10+
// i.e.:
11+
// 'mouseover' event -> 'tipMouseover' function
12+
// 'mouseout' event -> 'tipMouseout' function
13+
// Should call appropriate function upon triggering a certain event on a node (nested under the 'update' function)
14+
// i.e.:
15+
// 'mouseover' event -> 'mouseover' function
16+
// 'mouseout' event -> 'mouseout' function
17+
// 'click' event -> 'click' function
18+
// Should call function 'update' at least once

0 commit comments

Comments
 (0)