diff --git a/tests/lib/rules/html-self-closing.js b/tests/lib/rules/html-self-closing.js index 0f0898b53..37991580a 100644 --- a/tests/lib/rules/html-self-closing.js +++ b/tests/lib/rules/html-self-closing.js @@ -90,27 +90,68 @@ tester.run('html-self-closing', rule, { { code: '', output: '', - errors: ['Require self-closing on HTML elements (
).'] + errors: [ + { + message: 'Require self-closing on HTML elements (
).', + line: 1, + column: 16, + endLine: 1, + endColumn: 22 + } + ] }, { code: '', output: '', - errors: ['Disallow self-closing on HTML void elements ().'] + errors: [ + { + message: 'Disallow self-closing on HTML void elements ().', + line: 1, + column: 15, + endLine: 1, + endColumn: 17 + } + ] }, { code: '', output: '', - errors: ['Require self-closing on Vue.js custom components ().'] + errors: [ + { + message: + 'Require self-closing on Vue.js custom components ().', + line: 1, + column: 19, + endLine: 1, + endColumn: 28 + } + ] }, { code: '', output: '', - errors: ['Require self-closing on SVG elements ().'] + errors: [ + { + message: 'Require self-closing on SVG elements ().', + line: 1, + column: 22, + endLine: 1, + endColumn: 29 + } + ] }, { code: '', output: '', - errors: ['Require self-closing on MathML elements ().'] + errors: [ + { + message: 'Require self-closing on MathML elements ().', + line: 1, + column: 25, + endLine: 1, + endColumn: 34 + } + ] }, // others @@ -130,7 +171,13 @@ tester.run('html-self-closing', rule, { `, options: [anyWith({ html: { normal: 'always' } })], errors: [ - { message: 'Require self-closing on HTML elements (
).', line: 2 } + { + message: 'Require self-closing on HTML elements (
).', + line: 2, + column: 8, + endLine: 2, + endColumn: 14 + } ] }, { @@ -149,7 +196,13 @@ tester.run('html-self-closing', rule, { `, options: [anyWith({ html: { normal: 'never' } })], errors: [ - { message: 'Disallow self-closing on HTML elements (
).', line: 3 } + { + message: 'Disallow self-closing on HTML elements (
).', + line: 3, + column: 7, + endLine: 3, + endColumn: 9 + } ] }, { @@ -170,7 +223,10 @@ tester.run('html-self-closing', rule, { errors: [ { message: 'Require self-closing on HTML void elements ().', - line: 4 + line: 4, + column: 3, + endLine: 4, + endColumn: 8 } ] }, @@ -192,7 +248,10 @@ tester.run('html-self-closing', rule, { errors: [ { message: 'Disallow self-closing on HTML void elements ().', - line: 5 + line: 5, + column: 7, + endLine: 5, + endColumn: 9 } ] }, @@ -215,7 +274,10 @@ tester.run('html-self-closing', rule, { { message: 'Require self-closing on Vue.js custom components ().', - line: 6 + line: 6, + column: 11, + endLine: 6, + endColumn: 20 } ] }, @@ -238,7 +300,10 @@ tester.run('html-self-closing', rule, { { message: 'Disallow self-closing on Vue.js custom components ().', - line: 7 + line: 7, + column: 10, + endLine: 7, + endColumn: 12 } ] }, @@ -258,7 +323,13 @@ tester.run('html-self-closing', rule, { `, options: [anyWith({ svg: 'always' })], errors: [ - { message: 'Require self-closing on SVG elements ().', line: 8 } + { + message: 'Require self-closing on SVG elements ().', + line: 8, + column: 14, + endLine: 8, + endColumn: 21 + } ] }, { @@ -277,7 +348,13 @@ tester.run('html-self-closing', rule, { `, options: [anyWith({ svg: 'never' })], errors: [ - { message: 'Disallow self-closing on SVG elements ().', line: 9 } + { + message: 'Disallow self-closing on SVG elements ().', + line: 9, + column: 13, + endLine: 9, + endColumn: 15 + } ] }, { @@ -298,7 +375,10 @@ tester.run('html-self-closing', rule, { errors: [ { message: 'Require self-closing on MathML elements ().', - line: 10 + line: 10, + column: 17, + endLine: 10, + endColumn: 26 } ] }, @@ -320,7 +400,10 @@ tester.run('html-self-closing', rule, { errors: [ { message: 'Disallow self-closing on MathML elements ().', - line: 11 + line: 11, + column: 16, + endLine: 11, + endColumn: 18 } ] }