feat(Row): add click event (#4170)

This commit is contained in:
neverland
2019-08-21 10:23:05 +08:00
committed by GitHub
parent 6b8fbfb290
commit 71501d0ac1
4 changed files with 27 additions and 0 deletions
+8
View File
@@ -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();
});