Skip to content

Commit

Permalink
Add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Jul 17, 2021
1 parent d22cb94 commit af17d4f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/lib/rules/no-parsing-error.js
Expand Up @@ -615,6 +615,32 @@ tester.run('no-parsing-error', rule, {
{
code: '<template><div xmlns=""></template>',
errors: ['Parsing error: x-invalid-namespace.']
},

//style vars
{
filename: 'test.vue',
code: `
<template></template>
<style>
.text {
color: v-bind(color.);
font-size: v-bind('font size');
}
</style>
`,
errors: [
{
message: 'Parsing error: Unexpected end of expression.',
line: 5,
column: 33
},
{
message: 'Parsing error: Unexpected token size.',
line: 6,
column: 37
}
]
}
]
})

0 comments on commit af17d4f

Please sign in to comment.