Files
vant/src/loading/test/index.spec.js
T
2020-01-19 11:57:09 +08:00

26 lines
429 B
JavaScript

import { mount } from '../../../test';
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();
});