Skip to content

Commit 4cf8e87

Browse files
update test
1 parent 3f4d687 commit 4cf8e87

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/lib/rules/v-if-else-key.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ tester.run('v-if-else-key', rule, {
536536
<ComponentA key="component-a-1" v-if="foo" />
537537
<ComponentA key="component-a-2" v-else />
538538
539-
<ComponentA v-if="bar" />
539+
<ComponentA key="component-a-3" v-if="bar" />
540540
<ComponentA key="component-a-4" v-else-if="baz" />
541541
<ComponentA key="component-a-5" v-else />
542542
</div>
@@ -560,6 +560,11 @@ tester.run('v-if-else-key', rule, {
560560
"Conditionally rendered repeated component 'ComponentA' expected to have a 'key' attribute.",
561561
line: 5
562562
},
563+
{
564+
message:
565+
"Conditionally rendered repeated component 'ComponentA' expected to have a 'key' attribute.",
566+
line: 7
567+
},
563568
{
564569
message:
565570
"Conditionally rendered repeated component 'ComponentA' expected to have a 'key' attribute.",

0 commit comments

Comments
 (0)