Skip to content

Commit fd58b65

Browse files
committed
Fix: no-parsing-error test (refs #398)
1 parent ed8afed commit fd58b65

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/lib/rules/no-parsing-error.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ tester.run('no-parsing-error', rule, {
207207
options: [{ 'x-invalid-namespace': false }]
208208
},
209209
'<template><div/></template>',
210-
'<template><div v-show="">hello</div></template>'
210+
'<template><div v-show="">hello</div></template>',
211+
'<template><div>{{ }}</div></template>'
211212
],
212213
invalid: [
213214
{
@@ -230,13 +231,6 @@ tester.run('no-parsing-error', rule, {
230231
code: '<template><div v-show="a;b;">hello</div></template>',
231232
errors: ['Parsing error: Unexpected token ;.']
232233
},
233-
{
234-
filename: 'test.vue',
235-
code: '<template><div>{{ }}</div></template>',
236-
errors: [
237-
{ message: 'Parsing error: Expected to be an expression, but got empty.', column: 18 }
238-
]
239-
},
240234
{
241235
filename: 'test.vue',
242236
code: '<template><div v-show=" ">hello</div></template>',

0 commit comments

Comments
 (0)