From 3d2376721d8ea551a5904dd0ab884251fb38cf94 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 25 Jul 2025 18:39:27 +0200 Subject: [PATCH] test(enforce-style-attribute): make tests more strict --- tests/lib/rules/enforce-style-attribute.js | 54 ++++++++++++++++++---- 1 file changed, 45 insertions(+), 9 deletions(-) diff --git a/tests/lib/rules/enforce-style-attribute.js b/tests/lib/rules/enforce-style-attribute.js index f12f66998..1a269ab06 100644 --- a/tests/lib/rules/enforce-style-attribute.js +++ b/tests/lib/rules/enforce-style-attribute.js @@ -63,7 +63,11 @@ tester.run('enforce-style-attribute', rule, { code: ``, errors: [ { - message: 'Plain `, errors: [ { - message: 'The module attribute is not allowed. Allowed: scoped.' + message: 'The module attribute is not allowed. Allowed: scoped.', + line: 1, + column: 39, + endLine: 1, + endColumn: 61 } ] }, @@ -81,7 +89,11 @@ tester.run('enforce-style-attribute', rule, { options: [{ allow: ['scoped'] }], errors: [ { - message: 'Plain