mirror of
https://github.com/youzan/vant.git
synced 2026-05-07 01:01:01 +08:00
types: test cases typing
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { mount } from '@vue/test-utils';
|
||||
import { mount } from '../../../test';
|
||||
import ActionSheet from '..';
|
||||
|
||||
test('should emit select event after clicking option', () => {
|
||||
@@ -129,9 +129,8 @@ test('should change option color when using the color prop', () => {
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper.find('.van-action-sheet__item').element.style.color).toEqual(
|
||||
'red'
|
||||
);
|
||||
const item = wrapper.find('.van-action-sheet__item');
|
||||
expect(item.style.color).toEqual('red');
|
||||
});
|
||||
|
||||
test('should hide close icon when the closeable prop is false', async () => {
|
||||
Reference in New Issue
Block a user