feat: add Empty component (#6010)

This commit is contained in:
neverland
2020-04-07 17:43:19 +08:00
committed by GitHub
parent 14299a2011
commit 525f7ecb88
12 changed files with 458 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import Empty from '..';
import { mount } from '../../../test';
test('image slot', () => {
const wrapper = mount(Empty, {
scopedSlots: {
image: () => 'Custom Image',
},
});
expect(wrapper).toMatchSnapshot();
});
test('description slot', () => {
const wrapper = mount(Empty, {
scopedSlots: {
description: () => 'Custom description',
},
});
expect(wrapper).toMatchSnapshot();
});