mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[new feature] Button: add loading-size prop (#2854)
This commit is contained in:
12
packages/button/test/index.spec.js
Normal file
12
packages/button/test/index.spec.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { mount } from '../../../test/utils';
|
||||
import Button from '..';
|
||||
|
||||
test('loading size', () => {
|
||||
const wrapper = mount(Button, {
|
||||
propsData: {
|
||||
loading: true,
|
||||
loadingSize: '10px'
|
||||
}
|
||||
});
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
Reference in New Issue
Block a user