File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const FullOptionOpt = {
26
26
inheritAttrs : true ,
27
27
expose : [ 'expose1' , 'expose2' ] ,
28
28
modifier ( option : any ) {
29
- option . emits . push ( 'emits3' )
29
+ option . modifierCalled = true
30
30
return option
31
31
} ,
32
32
render ( ) {
@@ -60,7 +60,7 @@ describe('Component',
60
60
const opt = ( FullOptionOpt as any ) [ key ]
61
61
switch ( key ) {
62
62
case 'emits' :
63
- expect ( [ ... opt , 'emits3' ] . join ( ',' ) ) . to . equal ( FullOptionContext [ key ] . join ( ',' ) )
63
+ expect ( opt . join ( ',' ) ) . to . equal ( FullOptionContext [ key ] . join ( ',' ) )
64
64
break ;
65
65
case 'render' :
66
66
expect ( 'render value' ) . to . equal ( FullOptionContext [ key ] ( ) )
@@ -69,6 +69,7 @@ describe('Component',
69
69
expect ( opt . test ) . to . equal ( FullOptionContext [ 'test' ] )
70
70
break ;
71
71
case 'modifier' :
72
+ expect ( true ) . to . equal ( FullOptionContext [ 'modifierCalled' ] )
72
73
return ;
73
74
default :
74
75
expect ( opt ) . to . equal ( FullOptionContext [ key ] )
You can’t perform that action at this time.
0 commit comments