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(
6767
6868 if ( event . startsWith ( 'update:' ) ) {
6969 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+ )
7175 }
7276
7377 vm . props [ event . slice ( 'update:' . length ) ] = args [ 0 ]
Original file line number Diff line number Diff line change @@ -99,16 +99,16 @@ describe('props', () => {
9999 increment : ( ) => ctx . emit ( 'update:modelValue' , props . modelValue + 1 )
100100 }
101101 }
102- } ) ;
102+ } )
103103
104104 const wrapper = mount ( component , {
105105 props : {
106106 modelValue : 1
107107 }
108108 } )
109109
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 )
113113 } )
114114} )
You can’t perform that action at this time.
0 commit comments