Skip to content

Commit

Permalink
test: add new case for #378
Browse files Browse the repository at this point in the history
  • Loading branch information
francoismassart committed Jan 15, 2025
1 parent 27d868d commit b98c882
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/lib/rules/enforces-shorthand.js
Original file line number Diff line number Diff line change
Expand Up @@ -810,5 +810,18 @@ ruleTester.run("shorthands", rule, {
},
],
})),
{
code: `<div class="pfx-h-5 pfx-w-5 sm:pfx-h-10 sm:pfx-w-10">New size-* utilities</div>`,
output: `<div class="pfx-size-5 sm:pfx-size-10">New size-* utilities</div>`,
errors: [
generateError(["pfx-h-5", "pfx-w-5"], "pfx-size-5"),
generateError(["sm:pfx-h-10", "sm:pfx-w-10"], "sm:pfx-size-10"),
],
options: [
{
config: { prefix: "pfx-" },
},
],
},
],
});

0 comments on commit b98c882

Please sign in to comment.