@@ -218,7 +218,7 @@ tester.run('no-duplicate-class-names', rule, {
218218 ]
219219 } ,
220220 {
221- filename : 'duplicate-class-in-different-attributes .vue' ,
221+ filename : 'duplicate-class-cross-attribute-string .vue' ,
222222 code : `<template><div class="foo" :class="'foo'"></div></template>` ,
223223 output : null ,
224224 errors : [
@@ -229,7 +229,18 @@ tester.run('no-duplicate-class-names', rule, {
229229 ]
230230 } ,
231231 {
232- filename : 'duplicate-class-different-attributes.vue' ,
232+ filename : 'duplicate-class-cross-attribute-literal.vue' ,
233+ code : '<template><div class="foo" :class="`foo`"></div></template>' ,
234+ output : null ,
235+ errors : [
236+ {
237+ message : "Duplicate class name 'foo'." ,
238+ type : 'VStartTag'
239+ }
240+ ]
241+ } ,
242+ {
243+ filename : 'duplicate-class-cross-attribute.vue' ,
233244 code : `<template><div class="foo" :class="'foo bar'"></div></template>` ,
234245 output : null ,
235246 errors : [
@@ -240,7 +251,7 @@ tester.run('no-duplicate-class-names', rule, {
240251 ]
241252 } ,
242253 {
243- filename : 'duplicate-class-different-attributes -multiple-duplicates.vue' ,
254+ filename : 'duplicate-class-cross-attribute -multiple-duplicates.vue' ,
244255 code : `<template><div class="foo bar" :class="'foo bar'"></div></template>` ,
245256 output : null ,
246257 errors : [
@@ -251,7 +262,7 @@ tester.run('no-duplicate-class-names', rule, {
251262 ]
252263 } ,
253264 {
254- filename : 'duplicate-class-different-attributes -array.vue' ,
265+ filename : 'duplicate-class-cross-attribute -array.vue' ,
255266 code : `<template><div class="foo" :class="['foo', 'bar']"></div></template>` ,
256267 output : null ,
257268 errors : [
@@ -262,7 +273,7 @@ tester.run('no-duplicate-class-names', rule, {
262273 ]
263274 } ,
264275 {
265- filename : 'duplicate-class-different-attributes -object.vue' ,
276+ filename : 'duplicate-class-cross-attribute -object.vue' ,
266277 code : `<template><div class="foo" :class="{ 'foo': true }"></div></template>` ,
267278 output : null ,
268279 errors : [
@@ -273,7 +284,7 @@ tester.run('no-duplicate-class-names', rule, {
273284 ]
274285 } ,
275286 {
276- filename : 'duplicate-class-different-attributes -mixed.vue' ,
287+ filename : 'duplicate-class-cross-attribute -mixed.vue' ,
277288 code : `<template><div class="foo" :class="['foo', { 'bar': true }]"></div></template>` ,
278289 output : null ,
279290 errors : [
@@ -284,7 +295,7 @@ tester.run('no-duplicate-class-names', rule, {
284295 ]
285296 } ,
286297 {
287- filename : 'duplicate-class-different-attributes -binary.vue' ,
298+ filename : 'duplicate-class-cross-attribute -binary.vue' ,
288299 code : `<template><div class="foo" :class="'foo ' + 'bar'"></div></template>` ,
289300 output : null ,
290301 errors : [
@@ -295,7 +306,7 @@ tester.run('no-duplicate-class-names', rule, {
295306 ]
296307 } ,
297308 {
298- filename : 'duplicate-class-different-attributes -conditional.vue' ,
309+ filename : 'duplicate-class-cross-attribute -conditional.vue' ,
299310 code : `<template><div class="foo" :class="isActive ? 'foo' : 'bar'"></div></template>` ,
300311 output : null ,
301312 errors : [
0 commit comments