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 Cell from '..';
import { mount } from '@vue/test-utils';
import { mount } from '../../../test';
test('should render default slot correctly', () => {
const wrapper = mount(Cell, {
@@ -70,7 +70,8 @@ test('should change title style when using title-style prop', () => {
},
});
expect(wrapper.find('.van-cell__title').element.style.color).toEqual('red');
const title = wrapper.find('.van-cell__title');
expect(title.style.color).toEqual('red');
});
test('should change icon class prefix when using icon-prefix prop', () => {