🌐 AI搜索 & 代理 主页
Skip to content

Commit 58432ae

Browse files
authored
test: remove errors and output from valid test cases (#2992)
1 parent 5023e75 commit 58432ae

File tree

4 files changed

+6
-23
lines changed

4 files changed

+6
-23
lines changed

tests/lib/rules/html-self-closing.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ tester.run('html-self-closing', rule, {
5656
// Don't error if there are comments in their content.
5757
{
5858
code: '<template><div><!-- comment --></div></template>',
59-
output: null,
6059
options: [{ html: { normal: 'always' } }]
6160
},
6261

tests/lib/rules/no-deprecated-props-default-this.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ ruleTester.run('no-deprecated-props-default-this', rule, {
7171
}
7272
}
7373
</script>
74-
`,
75-
errors: [{}, {}]
74+
`
7675
},
7776
{
7877
filename: 'test.vue',

tests/lib/rules/no-parsing-error.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,11 @@ tester.run('no-parsing-error', rule, {
8080
},
8181
{
8282
code: '<template><svg><![CDATA[cdata',
83-
options: [{ 'eof-in-cdata': false }],
84-
errors: ['Parsing error: eof-in-cdata.']
83+
options: [{ 'eof-in-cdata': false }]
8584
},
8685
{
8786
code: '<template><!--comment',
88-
options: [{ 'eof-in-comment': false }],
89-
errors: ['Parsing error: eof-in-comment.']
87+
options: [{ 'eof-in-comment': false }]
9088
},
9189
{
9290
code: '<template><div class=""',
@@ -192,8 +190,7 @@ tester.run('no-parsing-error', rule, {
192190
},
193191
{
194192
code: '<template></div></template>',
195-
options: [{ 'x-invalid-end-tag': false }],
196-
errors: ['Parsing error: x-invalid-end-tag.']
193+
options: [{ 'x-invalid-end-tag': false }]
197194
},
198195
{
199196
code: '<template><div xmlns=""></template>',

tests/lib/rules/no-setup-props-reactivity-loss.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,7 @@ tester.run('no-setup-props-reactivity-loss', rule, {
203203
const count = props.count
204204
})
205205
</script>
206-
`,
207-
errors: [
208-
{
209-
messageId: 'getProperty',
210-
line: 4
211-
}
212-
]
206+
`
213207
},
214208
{
215209
filename: 'test.vue',
@@ -223,13 +217,7 @@ tester.run('no-setup-props-reactivity-loss', rule, {
223217
count = props.count
224218
})
225219
</script>
226-
`,
227-
errors: [
228-
{
229-
messageId: 'getProperty',
230-
line: 4
231-
}
232-
]
220+
`
233221
},
234222
{
235223
filename: 'test.vue',

0 commit comments

Comments
 (0)