feat(Row): add click event (#4170)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Col from '..';
|
||||
import Row from '../../row';
|
||||
import { mount } from '../../../test/utils';
|
||||
|
||||
test('Col click event', () => {
|
||||
@@ -7,3 +8,10 @@ test('Col click event', () => {
|
||||
|
||||
expect(wrapper.emitted('click')).toBeTruthy();
|
||||
});
|
||||
|
||||
test('Row click event', () => {
|
||||
const wrapper = mount(Row);
|
||||
wrapper.trigger('click');
|
||||
|
||||
expect(wrapper.emitted('click')).toBeTruthy();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user