File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,11 @@ function recordEvent(
67
67
68
68
if ( event . startsWith ( 'update:' ) ) {
69
69
if ( args . length !== 1 ) {
70
- throw new Error ( 'Two-way bound properties have to emit a single value.' + args . length + ' values given.' )
70
+ throw new Error (
71
+ 'Two-way bound properties have to emit a single value.' +
72
+ args . length +
73
+ ' values given.'
74
+ )
71
75
}
72
76
73
77
vm . props [ event . slice ( 'update:' . length ) ] = args [ 0 ]
Original file line number Diff line number Diff line change @@ -99,16 +99,16 @@ describe('props', () => {
99
99
increment : ( ) => ctx . emit ( 'update:modelValue' , props . modelValue + 1 )
100
100
}
101
101
}
102
- } ) ;
102
+ } )
103
103
104
104
const wrapper = mount ( component , {
105
105
props : {
106
106
modelValue : 1
107
107
}
108
108
} )
109
109
110
- expect ( wrapper . props ( 'modelValue' ) ) . toBe ( 1 ) ;
111
- await wrapper . trigger ( 'click' ) ;
112
- expect ( wrapper . props ( 'modelValue' ) ) . toBe ( 2 ) ;
110
+ expect ( wrapper . props ( 'modelValue' ) ) . toBe ( 1 )
111
+ await wrapper . trigger ( 'click' )
112
+ expect ( wrapper . props ( 'modelValue' ) ) . toBe ( 2 )
113
113
} )
114
114
} )
You can’t perform that action at this time.
0 commit comments