[improvement] Rate: size prop support string type

This commit is contained in:
陈嘉涵
2019-05-28 19:53:00 +08:00
parent 04a017136e
commit 999be8064a
9 changed files with 65 additions and 40 deletions
+10
View File
@@ -98,3 +98,13 @@ test('gutter prop', () => {
expect(wrapper).toMatchSnapshot();
});
test('size prop', () => {
const wrapper = mount(Rate, {
propsData: {
size: '2rem'
}
});
expect(wrapper).toMatchSnapshot();
});