fix icon test coverage

This commit is contained in:
HeskeyBaozi 2018-09-02 20:30:55 +08:00 committed by 偏右
parent 2f8a56fa78
commit 52f162533c

View File

@ -47,6 +47,7 @@ describe('Icon', () => {
it('should support config global two-tone primary color', () => {
const colors = ReactIcon.getTwoToneColors();
Icon.setTwoToneColor('#1890ff');
expect(Icon.getTwoToneColor()).toBe('#1890ff');
const wrapper = render(
<Icon type="check-circle" theme="twoTone" />
);