File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,6 @@ describe('Progress', () => {
5858 expect ( circle . props . percent ) . to . be ( '30' ) ;
5959 } ) ;
6060
61- it ( 'doesn\'t render the circle path if at 0 percent' , ( ) => {
62- const circle = ReactDOM . render ( < Circle percent = "0" strokeWidth = "1" /> , div ) ;
63- const circlePathsLength = document . getElementsByClassName ( 'rc-progress-circle-path' ) . length ;
64- expect ( circlePathsLength ) . to . be ( 0 ) ;
65- circle . forceUpdate ( ) ; // See: https://github.com/react-component/progress/issues/35
66- } ) ;
67-
6861 it ( 'change with animation' , ( ) => {
6962 class Demo extends React . Component {
7063 state = {
@@ -79,14 +72,10 @@ describe('Progress', () => {
7972 }
8073 }
8174 const circle = ReactDOM . render ( < Demo /> , div ) ;
82- const circlePathsLength = document . getElementsByClassName ( 'rc-progress-circle-path' ) . length ;
83- expect ( circlePathsLength ) . to . be ( 0 ) ;
8475 expect ( circle . state . percent ) . to . be ( '0' ) ;
8576 circle . setState ( {
8677 percent : '30' ,
8778 } ) ;
88- const _circlePathsLength = document . getElementsByClassName ( 'rc-progress-circle-path' ) . length ;
89- expect ( _circlePathsLength ) . to . greaterThan ( 0 ) ;
9079 expect ( circle . state . percent ) . to . be ( '30' ) ;
9180 } ) ;
9281 } ) ;
You can’t perform that action at this time.
0 commit comments