mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[new feature] Loading: add text-size prop
This commit is contained in:
15
packages/loading/test/index.spec.js
Normal file
15
packages/loading/test/index.spec.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { mount } from '../../../test/utils';
|
||||
import Loading from '..';
|
||||
|
||||
test('text-size prop', () => {
|
||||
const wrapper = mount(Loading, {
|
||||
propsData: {
|
||||
textSize: 20
|
||||
},
|
||||
scopedSlots: {
|
||||
default: () => 'Text'
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
Reference in New Issue
Block a user