mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
17 lines
298 B
JavaScript
17 lines
298 B
JavaScript
import Cell from '..';
|
|
import { mount } from '../../../test/utils';
|
|
|
|
test('click event', () => {
|
|
const click = jest.fn();
|
|
const wrapper = mount(Cell, {
|
|
context: {
|
|
on: {
|
|
click
|
|
}
|
|
}
|
|
});
|
|
|
|
wrapper.trigger('click');
|
|
expect(click.mock.calls.length).toBeTruthy();
|
|
});
|