Skip to content

Commit 426858a

Browse files
committed
add test case
1 parent 4dfed52 commit 426858a

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)