mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-20 02:49:46 +08:00
18 lines
386 B
JavaScript
18 lines
386 B
JavaScript
import Col from '..';
|
|
import Row from '../../row';
|
|
import { mount } from '../../../test/utils';
|
|
|
|
test('Col click event', () => {
|
|
const wrapper = mount(Col);
|
|
wrapper.trigger('click');
|
|
|
|
expect(wrapper.emitted('click')).toBeTruthy();
|
|
});
|
|
|
|
test('Row click event', () => {
|
|
const wrapper = mount(Row);
|
|
wrapper.trigger('click');
|
|
|
|
expect(wrapper.emitted('click')).toBeTruthy();
|
|
});
|