Skip to content

Commit e8f91a9

Browse files
committed
test
1 parent 94b4946 commit e8f91a9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/app/__tests__/Chart.test.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import Chart from '../components/Chart';
3-
import testRunner from 'jest-runner';
43

54
// Unit test cases for d3 functionality
65
// Test the life cycle methods in Chart
@@ -9,6 +8,7 @@ describe('Life cycle methods in Chart', () => {
98
// Component should call maked3Tree upon mounting
109
// Use the mock function + .toBeCalled()
1110
// Test the method in the component
11+
throw new Error();
1212
});
1313
});
1414

@@ -20,6 +20,7 @@ describe('Root object', () => {
2020
// i.e.: this.props.hierarchy !== root
2121
// expect to !== this.props.hierarchy
2222
// expect to be a deep clone
23+
throw new Error();
2324
});
2425
});
2526

@@ -29,6 +30,7 @@ describe('maked3Tree method', () => {
2930
// Should call function 'removed3tree' only once
3031
// expect toBeCalled()
3132
// expect toHaveBeenCalled()
33+
throw new Error();
3234
});
3335
});
3436
// Test the tooltip functionality in maked3Tree method
@@ -37,11 +39,11 @@ describe('tooltip functionality in maked3Tree', () => {
3739
// a certain event on the tooltip div
3840
// Should call appropriate function upon triggering mouseOver
3941
it('should invoke tip.show on mouseOver', () => {
40-
42+
throw new Error();
4143
});
4244
// Should call appropriate function upon triggering mouseOut
4345
it ('should invoke tip.hide on mouseOut', () => {
44-
46+
throw new Error();
4547
});
4648
});
4749

0 commit comments

Comments
 (0)