Skip to content

Commit 3b67050

Browse files
authored
test(no-deprecated-slot-scope-attribute): make tests more strict (#2881)
1 parent 16c215a commit 3b67050

File tree

1 file changed

+38
-7
lines changed

1 file changed

+38
-7
lines changed

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

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ tester.run('no-deprecated-slot-scope-attribute', rule, {
6666
errors: [
6767
{
6868
message: '`slot-scope` are deprecated.',
69-
line: 4
69+
line: 4,
70+
column: 21,
71+
endLine: 4,
72+
endColumn: 31
7073
}
7174
]
7275
},
@@ -86,7 +89,10 @@ tester.run('no-deprecated-slot-scope-attribute', rule, {
8689
errors: [
8790
{
8891
message: '`slot-scope` are deprecated.',
89-
line: 4
92+
line: 4,
93+
column: 21,
94+
endLine: 4,
95+
endColumn: 31
9096
}
9197
]
9298
},
@@ -106,7 +112,10 @@ tester.run('no-deprecated-slot-scope-attribute', rule, {
106112
errors: [
107113
{
108114
message: '`slot-scope` are deprecated.',
109-
line: 4
115+
line: 4,
116+
column: 14,
117+
endLine: 4,
118+
endColumn: 24
110119
}
111120
]
112121
},
@@ -121,7 +130,10 @@ tester.run('no-deprecated-slot-scope-attribute', rule, {
121130
errors: [
122131
{
123132
message: '`slot-scope` are deprecated.',
124-
line: 4
133+
line: 4,
134+
column: 21,
135+
endLine: 4,
136+
endColumn: 31
125137
}
126138
]
127139
},
@@ -136,7 +148,10 @@ tester.run('no-deprecated-slot-scope-attribute', rule, {
136148
errors: [
137149
{
138150
message: '`slot-scope` are deprecated.',
139-
line: 4
151+
line: 4,
152+
column: 21,
153+
endLine: 4,
154+
endColumn: 31
140155
}
141156
]
142157
},
@@ -150,7 +165,15 @@ tester.run('no-deprecated-slot-scope-attribute', rule, {
150165
</my-component>
151166
</template>`,
152167
output: null,
153-
errors: ['`slot-scope` are deprecated.']
168+
errors: [
169+
{
170+
message: '`slot-scope` are deprecated.',
171+
line: 4,
172+
column: 37,
173+
endLine: 4,
174+
endColumn: 47
175+
}
176+
]
154177
},
155178
{
156179
code: `
@@ -163,7 +186,15 @@ tester.run('no-deprecated-slot-scope-attribute', rule, {
163186
</my-component>
164187
</template>`,
165188
output: null,
166-
errors: ['`slot-scope` are deprecated.']
189+
errors: [
190+
{
191+
message: '`slot-scope` are deprecated.',
192+
line: 4,
193+
column: 21,
194+
endLine: 4,
195+
endColumn: 31
196+
}
197+
]
167198
}
168199
]
169200
})

0 commit comments

Comments
 (0)