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
@@ -1,5 +1,5 @@
import Empty from '..';
import { mount } from '@vue/test-utils';
import { mount } from '../../../test';
test('should render image slot correctly', () => {
const wrapper = mount(Empty, {
@@ -48,7 +48,7 @@ test('should change image size when using image-size prop', async () => {
},
});
const image = wrapper.find('.van-empty__image').element;
const image = wrapper.find('.van-empty__image');
expect(image.style.width).toEqual('50px');
expect(image.style.height).toEqual('50px');