types: test cases typing

This commit is contained in:
chenjiahan
2021-02-11 13:04:00 +08:00
parent 7a5fb894d2
commit e2e0f66fe6
87 changed files with 129 additions and 121 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import Icon from '..';
import { mount } from '@vue/test-utils';
import { mount } from '../../../test';
test('should render icon with builtin icon name correctly', () => {
const wrapper = mount(Icon, {
@@ -73,5 +73,5 @@ test('should change icon size when using size prop', () => {
size: 20,
},
});
expect(wrapper.element.style.fontSize).toEqual('20px');
expect(wrapper.style.fontSize).toEqual('20px');
});