File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change 4
4
<CLink
5
5
:class =" linkClasses"
6
6
v-bind =" computedLinkProps"
7
- @click.native =" click"
8
7
>
9
8
<CIcon v-if =" icon" v-bind =" computedIcon" />
10
9
<i v-if =" fontIcon" :class =" ['c-sidebar-nav-icon', fontIcon]" />
@@ -79,11 +78,6 @@ export default {
79
78
return { customClasses: ' c-sidebar-nav-icon' , name: this .icon }
80
79
}
81
80
}
82
- },
83
- methods: {
84
- click (e ) {
85
- this .$emit (' link-clicked' , e)
86
- }
87
81
}
88
82
}
89
83
</script >
Original file line number Diff line number Diff line change @@ -43,10 +43,4 @@ describe(`${ComponentName}.vue`, () => {
43
43
it ( 'renders correctly in label mode' , ( ) => {
44
44
expect ( wrapperLabel . element ) . toMatchSnapshot ( )
45
45
} )
46
- it ( 'emits link-clicked event when clicked' , ( ) => {
47
- // cannot trigger native click
48
- // wrapper.find('a').trigger('click')
49
- wrapper . vm . click ( )
50
- expect ( wrapper . emitted ( ) [ 'link-clicked' ] ) . toBeTruthy ( )
51
- } )
52
46
} )
You can’t perform that action at this time.
0 commit comments