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