diff --git a/tests/lib/rules/no-parsing-error.js b/tests/lib/rules/no-parsing-error.js index 1408fb7d8..54194a7b5 100644 --- a/tests/lib/rules/no-parsing-error.js +++ b/tests/lib/rules/no-parsing-error.js @@ -223,22 +223,46 @@ tester.run('no-parsing-error', rule, { { filename: 'test.vue', code: '', - errors: ['Parsing error: Unexpected token b.'] + errors: [ + { + message: 'Parsing error: Unexpected token b.', + line: 1, + column: 15 + } + ] }, { filename: 'test.vue', code: '', - errors: ['Parsing error: Unexpected token b.'] + errors: [ + { + message: 'Parsing error: Unexpected token b.', + line: 1, + column: 20 + } + ] }, { filename: 'test.vue', code: '', - errors: ['Parsing error: Unexpected token b.'] + errors: [ + { + message: 'Parsing error: Unexpected token b.', + line: 1, + column: 26 + } + ] }, { filename: 'test.vue', code: '', - errors: ['Parsing error: Unexpected token ;.'] + errors: [ + { + message: 'Parsing error: Unexpected token ;.', + line: 1, + column: 25 + } + ] }, { filename: 'test.vue', @@ -247,6 +271,7 @@ tester.run('no-parsing-error', rule, { { message: 'Parsing error: Expected to be an expression, but got empty.', + line: 1, column: 24 } ] @@ -257,6 +282,7 @@ tester.run('no-parsing-error', rule, { errors: [ { message: 'Parsing error: Expected to be an alias, but got empty.', + line: 1, column: 23 } ] @@ -264,181 +290,388 @@ tester.run('no-parsing-error', rule, { { filename: 'test.vue', code: '', - errors: [{ message: 'Parsing error: Unexpected token (.', column: 26 }] + errors: [ + { message: 'Parsing error: Unexpected token (.', line: 1, column: 26 } + ] }, { code: ``, options: [{ 'abrupt-closing-of-empty-comment': true }], - errors: ['Parsing error: abrupt-closing-of-empty-comment.'] + errors: [ + { + message: 'Parsing error: abrupt-closing-of-empty-comment.', + line: 1, + column: 15 + } + ] }, { code: ``, options: [{ 'abrupt-closing-of-empty-comment': true }], - errors: ['Parsing error: abrupt-closing-of-empty-comment.'] + errors: [ + { + message: 'Parsing error: abrupt-closing-of-empty-comment.', + line: 1, + column: 16 + } + ] }, { code: ``, options: [{ 'absence-of-digits-in-numeric-character-reference': true }], errors: [ - 'Parsing error: absence-of-digits-in-numeric-character-reference.' + { + message: + 'Parsing error: absence-of-digits-in-numeric-character-reference.', + line: 1, + column: 13 + } ] }, { code: '', options: [{ 'cdata-in-html-content': true }], - errors: ['Parsing error: cdata-in-html-content.'] + errors: [ + { + message: 'Parsing error: cdata-in-html-content.', + line: 1, + column: 19 + } + ] }, { code: '', options: [{ 'character-reference-outside-unicode-range': true }], - errors: ['Parsing error: character-reference-outside-unicode-range.'] + errors: [ + { + message: 'Parsing error: character-reference-outside-unicode-range.', + line: 1, + column: 21 + } + ] }, { code: '', options: [{ 'control-character-in-input-stream': true }], - errors: ['Parsing error: control-character-in-input-stream.'] + errors: [ + { + message: 'Parsing error: control-character-in-input-stream.', + line: 1, + column: 10 + } + ] }, { code: '', options: [{ 'control-character-reference': true }], - errors: ['Parsing error: control-character-reference.'] + errors: [ + { + message: 'Parsing error: control-character-reference.', + line: 1, + column: 18 + } + ] }, { code: '