Skip to content

Commit b98c882

Browse files
test: add new case for #378
1 parent 27d868d commit b98c882

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/lib/rules/enforces-shorthand.js

+13
Original file line numberDiff line numberDiff line change
@@ -810,5 +810,18 @@ ruleTester.run("shorthands", rule, {
810810
},
811811
],
812812
})),
813+
{
814+
code: `<div class="pfx-h-5 pfx-w-5 sm:pfx-h-10 sm:pfx-w-10">New size-* utilities</div>`,
815+
output: `<div class="pfx-size-5 sm:pfx-size-10">New size-* utilities</div>`,
816+
errors: [
817+
generateError(["pfx-h-5", "pfx-w-5"], "pfx-size-5"),
818+
generateError(["sm:pfx-h-10", "sm:pfx-w-10"], "sm:pfx-size-10"),
819+
],
820+
options: [
821+
{
822+
config: { prefix: "pfx-" },
823+
},
824+
],
825+
},
813826
],
814827
});

0 commit comments

Comments
 (0)