diff --git a/tests/lib/rules/no-multiple-template-root.js b/tests/lib/rules/no-multiple-template-root.js index c52c1c202..8df286804 100644 --- a/tests/lib/rules/no-multiple-template-root.js +++ b/tests/lib/rules/no-multiple-template-root.js @@ -128,42 +128,106 @@ ruleTester.run('no-multiple-template-root', rule, { { filename: 'test.vue', code: '', - errors: ['The template root requires exactly one element.'] + errors: [ + { + message: 'The template root requires exactly one element.', + line: 1, + column: 22, + endLine: 1, + endColumn: 33 + } + ] }, { filename: 'test.vue', code: '', - errors: ['The template root requires exactly one element.'] + errors: [ + { + message: 'The template root requires exactly one element.', + line: 3, + column: 5, + endLine: 3, + endColumn: 16 + } + ] }, { filename: 'test.vue', code: '', - errors: ['The template root requires an element rather than texts.'] + errors: [ + { + message: 'The template root requires an element rather than texts.', + line: 1, + column: 11, + endLine: 1, + endColumn: 20 + } + ] }, { filename: 'test.vue', code: '', - errors: ['The template root requires an element rather than texts.'] + errors: [ + { + message: 'The template root requires an element rather than texts.', + line: 1, + column: 22, + endLine: 1, + endColumn: 28 + } + ] }, { filename: 'test.vue', code: '', - errors: ['The template root requires an element rather than texts.'] + errors: [ + { + message: 'The template root requires an element rather than texts.', + line: 1, + column: 11, + endLine: 1, + endColumn: 17 + } + ] }, { filename: 'test.vue', code: '', - errors: ["The template root disallows 'v-for' directives."] + errors: [ + { + message: "The template root disallows 'v-for' directives.", + line: 1, + column: 11, + endLine: 1, + endColumn: 34 + } + ] }, { filename: 'test.vue', code: '', - errors: ["The template root disallows '' elements."] + errors: [ + { + message: "The template root disallows '' elements.", + line: 1, + column: 11, + endLine: 1, + endColumn: 17 + } + ] }, { filename: 'test.vue', code: '', - errors: ["The template root disallows '