Files
vant/src/loading/test/index.legacy.js
T

26 lines
443 B
JavaScript

import { mount } from '../../../test';
import Loading from '..';
test('size prop', () => {
const wrapper = mount(Loading, {
propsData: {
size: 20,
},
});
expect(wrapper.html()).toMatchSnapshot();
});
test('text-size prop', () => {
const wrapper = mount(Loading, {
propsData: {
textSize: 20,
},
scopedSlots: {
default: () => 'Text',
},
});
expect(wrapper.html()).toMatchSnapshot();
});