[improvement] Rate: size prop support string type
This commit is contained in:
@@ -98,3 +98,13 @@ test('gutter prop', () => {
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('size prop', () => {
|
||||
const wrapper = mount(Rate, {
|
||||
propsData: {
|
||||
size: '2rem'
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user