Skip to content

Commit 0f5eb45

Browse files
committed
test: more specific error checks
1 parent 22d5483 commit 0f5eb45

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

tests/lib/rules/no-deprecated-slot-attribute.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,15 @@ tester.run('no-deprecated-slot-attribute', rule, {
684684
ignore: ['/one/']
685685
}
686686
],
687-
errors: ['`slot` attributes are deprecated.']
687+
errors: [
688+
{
689+
message: '`slot` attributes are deprecated.',
690+
line: 7,
691+
endLine: 7,
692+
column: 16,
693+
endColumn: 20
694+
}
695+
]
688696
},
689697
{
690698
code: `
@@ -714,7 +722,15 @@ tester.run('no-deprecated-slot-attribute', rule, {
714722
ignore: ['/^one$/']
715723
}
716724
],
717-
errors: ['`slot` attributes are deprecated.']
725+
errors: [
726+
{
727+
message: '`slot` attributes are deprecated.',
728+
line: 7,
729+
endLine: 7,
730+
column: 16,
731+
endColumn: 20
732+
}
733+
]
718734
},
719735
{
720736
code: `

0 commit comments

Comments
 (0)