test(Button): add basic test case

This commit is contained in:
chenjiahan
2020-11-07 23:45:15 +08:00
parent 5b6e827080
commit 1022969ae4
2 changed files with 25 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { mount } from '../../../test';
import Button from '..';
test('loading-size prop', () => {
const wrapper = mount(Button, {
propsData: {
loading: true,
loadingSize: '10px',
},
});
expect(wrapper.html()).toMatchSnapshot();
});