File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
packages/vue-compat/__tests__ Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -276,16 +276,23 @@ test('ATTR_ENUMERATED_COERCION', () => {
276276 ) . toHaveBeenWarned ( )
277277} )
278278
279- test ( 'ATTR_ENUMERATED_COERCION: true ' , ( ) => {
279+ test ( 'ATTR_ENUMERATED_COERCION, coercing "false" ' , ( ) => {
280280 const vm = new Vue ( {
281- compatConfig : { ATTR_ENUMERATED_COERCION : true } ,
282- template : `<div><div draggable="false">hello</div></div>` ,
281+ template : `<div><div draggable="false" :spellcheck="false">hello</div></div>` ,
283282 } ) . $mount ( )
284- expect ( vm . $el . innerHTML ) . toBe ( `<div draggable="false">hello</div>` )
283+ expect ( vm . $el . innerHTML ) . toBe (
284+ `<div draggable="false" spellcheck="false">hello</div>` ,
285+ )
285286 expect (
286287 (
287288 deprecationData [ DeprecationTypes . ATTR_ENUMERATED_COERCION ]
288289 . message as Function
289290 ) ( 'draggable' , 'false' , 'false' ) ,
290291 ) . toHaveBeenWarned ( )
292+ expect (
293+ (
294+ deprecationData [ DeprecationTypes . ATTR_ENUMERATED_COERCION ]
295+ . message as Function
296+ ) ( 'spellcheck' , 'false' , 'false' ) ,
297+ ) . toHaveBeenWarned ( )
291298} )
You can’t perform that action at this time.
0 commit comments