Skip to content

Commit

Permalink
fix(valid-template-root): add test no option
Browse files Browse the repository at this point in the history
  • Loading branch information
perrysong committed Apr 25, 2023
1 parent 4d885d3 commit db45036
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/lib/rules/valid-template-root.js
Expand Up @@ -99,6 +99,10 @@ tester.run('valid-template-root', rule, {
filename: 'test.vue',
code: '<template><template></template></template>'
},
{
filename: 'test.vue',
code: '<template> <div v-if="mode === \'a\'"></div><div v-if="mode === \'b\'"></div></template>'
},
{
filename: 'test.vue',
options: [{ ignoreOnlyIfDirective: false }],
Expand Down

0 comments on commit db45036

Please sign in to comment.