From 1314ef2d1d3ae432c54a045440292bdc945b19c3 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sun, 20 Jul 2025 22:47:31 +0200 Subject: [PATCH] test(dot-notation): make tests more strict --- tests/lib/rules/dot-notation.js | 40 +++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/tests/lib/rules/dot-notation.js b/tests/lib/rules/dot-notation.js index 993aade52..58626395d 100644 --- a/tests/lib/rules/dot-notation.js +++ b/tests/lib/rules/dot-notation.js @@ -29,12 +29,28 @@ tester.run('dot-notation', rule, { { code: ``, output: ``, - errors: ['["bar"] is better written in dot notation.'] + errors: [ + { + message: '["bar"] is better written in dot notation.', + line: 1, + column: 27, + endLine: 1, + endColumn: 32 + } + ] }, { code: ``, output: ``, - errors: ['[`bar`] is better written in dot notation.'] + errors: [ + { + message: '[`bar`] is better written in dot notation.', + line: 1, + column: 22, + endLine: 1, + endColumn: 27 + } + ] }, // CSS vars injection { @@ -50,7 +66,15 @@ tester.run('dot-notation', rule, { color: v-bind(foo.bar) } `, - errors: ['[`bar`] is better written in dot notation.'] + errors: [ + { + message: '[`bar`] is better written in dot notation.', + line: 4, + column: 27, + endLine: 4, + endColumn: 32 + } + ] }, { code: ` @@ -65,7 +89,15 @@ tester.run('dot-notation', rule, { color: v-bind("foo.bar") } `, - errors: ['[`bar`] is better written in dot notation.'] + errors: [ + { + message: '[`bar`] is better written in dot notation.', + line: 4, + column: 28, + endLine: 4, + endColumn: 33 + } + ] } ] })