Skip to content

Commit dcf6f23

Browse files
committed
Merge branch 'hengkx-fix-antd-17286'
* hengkx-fix-antd-17286: add test case
2 parents 4dfed52 + 426858a commit dcf6f23

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/index.spec.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,20 @@ describe('Progress', () => {
7878
});
7979
expect(circle.state.percent).toBe('30');
8080
});
81+
82+
it('circle support gradient color', () => {
83+
const circle = ReactDOM.render(
84+
<Circle
85+
percent={90}
86+
strokeWidth="6"
87+
strokeLinecap="round"
88+
strokeColor={{
89+
'0%': '#108ee9',
90+
'100%': '#87d068',
91+
}}
92+
/>
93+
, div);
94+
expect(circle.props.percent).toBe(90);
95+
})
8196
});
8297
});

0 commit comments

Comments
 (0)