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 = {
2626 inheritAttrs : true ,
2727 expose : [ 'expose1' , 'expose2' ] ,
2828 modifier ( option : any ) {
29- option . emits . push ( 'emits3' )
29+ option . modifierCalled = true
3030 return option
3131 } ,
3232 render ( ) {
@@ -60,7 +60,7 @@ describe('Component',
6060 const opt = ( FullOptionOpt as any ) [ key ]
6161 switch ( key ) {
6262 case 'emits' :
63- expect ( [ ... opt , 'emits3' ] . join ( ',' ) ) . to . equal ( FullOptionContext [ key ] . join ( ',' ) )
63+ expect ( opt . join ( ',' ) ) . to . equal ( FullOptionContext [ key ] . join ( ',' ) )
6464 break ;
6565 case 'render' :
6666 expect ( 'render value' ) . to . equal ( FullOptionContext [ key ] ( ) )
@@ -69,6 +69,7 @@ describe('Component',
6969 expect ( opt . test ) . to . equal ( FullOptionContext [ 'test' ] )
7070 break ;
7171 case 'modifier' :
72+ expect ( true ) . to . equal ( FullOptionContext [ 'modifierCalled' ] )
7273 return ;
7374 default :
7475 expect ( opt ) . to . equal ( FullOptionContext [ key ] )
You can’t perform that action at this time.
0 commit comments