1
1
import React from 'react' ;
2
2
import Chart from '../components/Chart' ;
3
- import testRunner from 'jest-runner' ;
4
3
5
4
// Unit test cases for d3 functionality
6
5
// Test the life cycle methods in Chart
@@ -9,6 +8,7 @@ describe('Life cycle methods in Chart', () => {
9
8
// Component should call maked3Tree upon mounting
10
9
// Use the mock function + .toBeCalled()
11
10
// Test the method in the component
11
+ throw new Error ( ) ;
12
12
} ) ;
13
13
} ) ;
14
14
@@ -20,6 +20,7 @@ describe('Root object', () => {
20
20
// i.e.: this.props.hierarchy !== root
21
21
// expect to !== this.props.hierarchy
22
22
// expect to be a deep clone
23
+ throw new Error ( ) ;
23
24
} ) ;
24
25
} ) ;
25
26
@@ -29,6 +30,7 @@ describe('maked3Tree method', () => {
29
30
// Should call function 'removed3tree' only once
30
31
// expect toBeCalled()
31
32
// expect toHaveBeenCalled()
33
+ throw new Error ( ) ;
32
34
} ) ;
33
35
} ) ;
34
36
// Test the tooltip functionality in maked3Tree method
@@ -37,11 +39,11 @@ describe('tooltip functionality in maked3Tree', () => {
37
39
// a certain event on the tooltip div
38
40
// Should call appropriate function upon triggering mouseOver
39
41
it ( 'should invoke tip.show on mouseOver' , ( ) => {
40
-
42
+ throw new Error ( ) ;
41
43
} ) ;
42
44
// Should call appropriate function upon triggering mouseOut
43
45
it ( 'should invoke tip.hide on mouseOut' , ( ) => {
44
-
46
+ throw new Error ( ) ;
45
47
} ) ;
46
48
} ) ;
47
49
0 commit comments