fix(Toast): icon-size prop should affect loading icon (#8339)
This commit is contained in:
@@ -74,3 +74,17 @@ test('should change icon size when using icon-size prop', async () => {
|
||||
await later();
|
||||
expect(wrapper.find('.van-icon').style.fontSize).toEqual('10px');
|
||||
});
|
||||
|
||||
test('should change loading icon size when using icon-size prop', async () => {
|
||||
const wrapper = mount(Toast, {
|
||||
props: {
|
||||
show: true,
|
||||
type: 'loading',
|
||||
iconSize: '10',
|
||||
},
|
||||
});
|
||||
|
||||
await later();
|
||||
expect(wrapper.find('.van-loading__spinner').style.width).toEqual('10px');
|
||||
expect(wrapper.find('.van-loading__spinner').style.height).toEqual('10px');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user