Skip to content

Commit d349881

Browse files
authored
test(no-deprecated-inline-template): make tests more strict (#2877)
1 parent 1f59ac9 commit d349881

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

tests/lib/rules/no-deprecated-inline-template.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,28 @@ ruleTester.run('no-deprecated-inline-template', rule, {
4848
{
4949
filename: 'test.vue',
5050
code: '<template><my-component inline-template=""><div /></my-component></template>',
51-
errors: [{ messageId: 'unexpected' }]
51+
errors: [
52+
{
53+
messageId: 'unexpected',
54+
line: 1,
55+
column: 25,
56+
endLine: 1,
57+
endColumn: 40
58+
}
59+
]
5260
},
5361
{
5462
filename: 'test.vue',
5563
code: '<template><my-component inline-template="foo"><div /></my-component></template>',
56-
errors: [{ messageId: 'unexpected' }]
64+
errors: [
65+
{
66+
messageId: 'unexpected',
67+
line: 1,
68+
column: 25,
69+
endLine: 1,
70+
endColumn: 40
71+
}
72+
]
5773
}
5874
]
5975
})

0 commit comments

Comments
 (0)