@@ -170,7 +170,7 @@ tester.run('no-empty-component-block', rule, {
170
170
} ,
171
171
{
172
172
code : '<template></template><script></script><style></style>' ,
173
- output : '' ,
173
+ output : '<script></script> ' ,
174
174
options : [ { autofix : true } ] ,
175
175
errors : [
176
176
{
@@ -185,8 +185,8 @@ tester.run('no-empty-component-block', rule, {
185
185
]
186
186
} ,
187
187
{
188
- code : '<template /> <script /> <style / >' ,
189
- output : '' ,
188
+ code : '<template></template> <script></script> <style></style >' ,
189
+ output : ' ' ,
190
190
options : [ { autofix : true } ] ,
191
191
errors : [
192
192
{
@@ -201,8 +201,24 @@ tester.run('no-empty-component-block', rule, {
201
201
]
202
202
} ,
203
203
{
204
- code : '<template src="" /><script src="" /><style src="" />' ,
205
- output : '' ,
204
+ code : '<template /> <script /> <style />' ,
205
+ output : ' ' ,
206
+ options : [ { autofix : true } ] ,
207
+ errors : [
208
+ {
209
+ message : '`<template>` is empty. Empty block is not allowed.'
210
+ } ,
211
+ {
212
+ message : '`<script>` is empty. Empty block is not allowed.'
213
+ } ,
214
+ {
215
+ message : '`<style>` is empty. Empty block is not allowed.'
216
+ }
217
+ ]
218
+ } ,
219
+ {
220
+ code : '<template src="" /> <script src="" /> <style src="" />' ,
221
+ output : ' ' ,
206
222
options : [ { autofix : true } ] ,
207
223
errors : [
208
224
{
@@ -217,8 +233,8 @@ tester.run('no-empty-component-block', rule, {
217
233
]
218
234
} ,
219
235
{
220
- code : '<template><p></p></template><script src="" /><style src="" />' ,
221
- output : '<template><p></p></template>' ,
236
+ code : '<template><p></p></template> <script src="" /> <style src="" />' ,
237
+ output : '<template><p></p></template> ' ,
222
238
options : [ { autofix : true } ] ,
223
239
errors : [
224
240
{
0 commit comments