mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
26 lines
430 B
JavaScript
26 lines
430 B
JavaScript
import { mount } from '../../../test/utils';
|
|
import Loading from '..';
|
|
|
|
test('size prop', () => {
|
|
const wrapper = mount(Loading, {
|
|
propsData: {
|
|
size: 20
|
|
}
|
|
});
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
|
|
test('text-size prop', () => {
|
|
const wrapper = mount(Loading, {
|
|
propsData: {
|
|
textSize: 20
|
|
},
|
|
scopedSlots: {
|
|
default: () => 'Text'
|
|
}
|
|
});
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|