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 44 <CLink
55 :class =" linkClasses"
66 v-bind =" computedLinkProps"
7- @click.native =" click"
87 >
98 <CIcon v-if =" icon" v-bind =" computedIcon" />
109 <i v-if =" fontIcon" :class =" ['c-sidebar-nav-icon', fontIcon]" />
@@ -79,11 +78,6 @@ export default {
7978 return { customClasses: ' c-sidebar-nav-icon' , name: this .icon }
8079 }
8180 }
82- },
83- methods: {
84- click (e ) {
85- this .$emit (' link-clicked' , e)
86- }
8781 }
8882}
8983 </script >
Original file line number Diff line number Diff line change @@ -43,10 +43,4 @@ describe(`${ComponentName}.vue`, () => {
4343 it ( 'renders correctly in label mode' , ( ) => {
4444 expect ( wrapperLabel . element ) . toMatchSnapshot ( )
4545 } )
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- } )
5246} )
You can’t perform that action at this time.
0 commit comments