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,4 +1,4 @@
import { mount } from '@vue/test-utils';
import { mount } from '../../../test';
import Skeleton from '..';
test('should render with row width array correctly', () => {
@@ -30,7 +30,7 @@ test('should change avatar size when using avatar-size prop', () => {
},
});
const avatar = wrapper.find('.van-skeleton__avatar').element;
const avatar = wrapper.find('.van-skeleton__avatar');
expect(avatar.style.width).toMatchSnapshot('20rem');
expect(avatar.style.height).toMatchSnapshot('20ren');
});