Skip to content

Commit b4ad756

Browse files
authored
test(html-end-tags): make tests more strict (#2837)
1 parent e901538 commit b4ad756

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

tests/lib/rules/html-end-tags.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,29 @@ tester.run('html-end-tags', rule, {
8080
filename: 'test.vue',
8181
code: '<template><div><div></div></template>',
8282
output: '<template><div><div></div></div></template>',
83-
errors: ["'<div>' should have end tag."]
83+
errors: [
84+
{
85+
message: "'<div>' should have end tag.",
86+
line: 1,
87+
column: 11,
88+
endLine: 1,
89+
endColumn: 16
90+
}
91+
]
8492
},
8593
{
8694
filename: 'test.vue',
8795
code: '<template><div><p></div></template>',
8896
output: '<template><div><p></p></div></template>',
89-
errors: ["'<p>' should have end tag."]
97+
errors: [
98+
{
99+
message: "'<p>' should have end tag.",
100+
line: 1,
101+
column: 16,
102+
endLine: 1,
103+
endColumn: 19
104+
}
105+
]
90106
}
91107
]
92108
})

0 commit comments

Comments
 (0)