@@ -218,7 +218,7 @@ test("parse valid object not to throw", () => {
218
218
) . not . toThrow ( ) ;
219
219
} ) ;
220
220
221
- test ( "parse expression using mutiple lines to throw" , ( ) => {
221
+ test ( "parse expression using multiple lines to throw" , ( ) => {
222
222
expect ( ( ) =>
223
223
checkTemplate ( {
224
224
template : `<div><CustomSelect @event="
@@ -301,69 +301,3 @@ test("parse v-for nested expressions and add their vars to available data", () =
301
301
) . not . toThrow ( ) ;
302
302
} ) ;
303
303
304
- test ( "throw error when mixed case attributes" , ( ) => {
305
- expect ( ( ) =>
306
- checkTemplate ( {
307
- template : `<div aA="as">
308
- <div/>
309
- </div>` ,
310
- } )
311
- ) . toThrowError ( "[VueLive] Invalid attribute name: aA" ) ;
312
- } ) ;
313
-
314
- test . each ( defaultAttrAllowList ) (
315
- "don't throw error for allowed SVG attribute %s" ,
316
- ( attr ) => {
317
- expect ( ( ) =>
318
- checkTemplate ( {
319
- template : `<svg ${ attr } ="as">
320
- <g/>
321
- </svg>` ,
322
- } )
323
- ) . not . toThrowError ( `[VueLive] Invalid attribute name: ${ attr } ` ) ;
324
- }
325
- ) ;
326
-
327
- test ( "throw error when invalid character attributes" , ( ) => {
328
- expect ( ( ) =>
329
- checkTemplate ( {
330
- template : `<div $s="as">
331
- <div/>
332
- </div>` ,
333
- } )
334
- ) . toThrowError ( "[VueLive] Invalid attribute name: $s" ) ;
335
- } ) ;
336
-
337
- test ( "throw error when invalid character attributes $" , ( ) => {
338
- expect ( ( ) =>
339
- checkTemplate ( {
340
- template : `<div $s="as">
341
- <div/>
342
- </div>` ,
343
- } )
344
- ) . toThrowError ( "[VueLive] Invalid attribute name: $s" ) ;
345
- } ) ;
346
-
347
- test ( "throw error when invalid character attributes +" , ( ) => {
348
- expect ( ( ) =>
349
- checkTemplate ( {
350
- template : `<div s+tata="as">
351
- <div/>
352
- </div>` ,
353
- } )
354
- ) . toThrowError ( "[VueLive] Invalid attribute name: s+tata" ) ;
355
- } ) ;
356
-
357
- test ( "not error when all attributes are valid" , ( ) => {
358
- expect ( ( ) =>
359
- checkTemplate ( {
360
- template : `<div>
361
- <div ja-da="0" />
362
- <div v-bind:da="0" />
363
- <div v-on:da="0" />
364
- <div :da="0" />
365
- <div @da="co()" />
366
- </div>` ,
367
- } )
368
- ) . not . toThrow ( ) ;
369
- } ) ;
0 commit comments