Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemelendez committed Jul 8, 2024
1 parent 3f4d687 commit 4cf8e87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/lib/rules/v-if-else-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ tester.run('v-if-else-key', rule, {
<ComponentA key="component-a-1" v-if="foo" />
<ComponentA key="component-a-2" v-else />
<ComponentA v-if="bar" />
<ComponentA key="component-a-3" v-if="bar" />
<ComponentA key="component-a-4" v-else-if="baz" />
<ComponentA key="component-a-5" v-else />
</div>
Expand All @@ -560,6 +560,11 @@ tester.run('v-if-else-key', rule, {
"Conditionally rendered repeated component 'ComponentA' expected to have a 'key' attribute.",
line: 5
},
{
message:
"Conditionally rendered repeated component 'ComponentA' expected to have a 'key' attribute.",
line: 7
},
{
message:
"Conditionally rendered repeated component 'ComponentA' expected to have a 'key' attribute.",
Expand Down

0 comments on commit 4cf8e87

Please sign in to comment.