Skip to content

Commit 2210bfe

Browse files
committed
Fix test case
1 parent a62a414 commit 2210bfe

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tests/index.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)