Skip to content

Commit 8fea0bc

Browse files
committed
feat: update tests
1 parent 947a9b0 commit 8fea0bc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/lib/rules/no-empty-component-block.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,16 @@ tester.run('no-empty-component-block', rule, {
197197
message: '`<template>` is empty. Empty block is not allowed.'
198198
}
199199
]
200+
},
201+
{
202+
code: '<template><p></p></template><script src="" /><style src="" />',
203+
output: '<template><p></p></template>',
204+
options: [{ autofix: true }],
205+
errors: [
206+
{
207+
message: '`<script>` is empty. Empty block is not allowed.'
208+
}
209+
]
200210
}
201211
]
202212
})

0 commit comments

Comments
 (0)