Skip to content

Commit 5f82118

Browse files
committed
tests(template-no-whitespace-for-layout): improve attr-value test cases
Replace the Tailwind-specific valid case with a style attribute example where consecutive spaces are more clearly intentional. Add a comment referencing ember-template-lint#2899 to explain why attr values must not be flagged.
1 parent 5c96387 commit 5f82118

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/lib/rules/template-no-whitespace-for-layout.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ const validHbs = [
1818
>
1919
example
2020
</div>`,
21+
// Attribute values with consecutive spaces must not be flagged (false positive,
22+
// cf. ember-template-lint#2899) — the rule targets element body text only.
2123
'<div class="foo bar"></div>',
22-
'<div class="min-h-dvh bg-gray-200 "></div>',
24+
'<div style="margin: 0; padding: 0"></div>',
2325
];
2426

2527
const invalidHbs = [

0 commit comments

Comments
 (0)