File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ describe("multi-select options", () => {
223223 await openMenu ( wrapper ) ;
224224 await wrapper . get ( "div[role='option']" ) . trigger ( "click" ) ;
225225
226- expect ( wrapper . props ( " modelValue") ) . toStrictEqual ( [ options [ 0 ] . value ] ) ;
226+ expect ( wrapper . emitted ( "update: modelValue") ) . toStrictEqual ( [ [ [ options [ 0 ] . value ] ] ] ) ;
227227 expect ( wrapper . get ( ".multi-value" ) . element . textContent ) . toBe ( options [ 0 ] . label ) ;
228228 } ) ;
229229
@@ -282,7 +282,7 @@ describe("clear button", () => {
282282 await wrapper . get ( "div[role='option']" ) . trigger ( "click" ) ;
283283 await wrapper . get ( ".clear-button" ) . trigger ( "click" ) ;
284284
285- expect ( wrapper . props ( " modelValue") ) . toStrictEqual ( [ options [ 0 ] . value ] ) ;
285+ expect ( wrapper . emitted ( "update: modelValue") ) . toStrictEqual ( [ [ [ options [ 0 ] . value ] ] , [ [ ] ] ] ) ;
286286 expect ( wrapper . find ( ".clear-button" ) . exists ( ) ) . toBe ( false ) ;
287287 } ) ;
288288} ) ;
You can’t perform that action at this time.
0 commit comments