types: test cases typing
This commit is contained in:
@@ -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');
|
||||
});
|
||||
Reference in New Issue
Block a user