feat: loading component

This commit is contained in:
chenjiahan
2020-07-05 16:08:04 +08:00
parent e671e22ea5
commit e0f9382123
10 changed files with 435 additions and 8 deletions
+25
View File
@@ -0,0 +1,25 @@
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();
});