Skip to content

Commit

Permalink
chore: add tests for issue 324
Browse files Browse the repository at this point in the history
  • Loading branch information
francoismassart committed Mar 12, 2024
1 parent 775e9bb commit 3554982
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/lib/rules/no-unnecessary-arbitrary-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,26 @@ ruleTester.run("arbitrary-values", rule, {
`,
options: config,
},
{
code: `
<pre class="bg-[url('/chevron-down.svg')] bg-[size:20px_20px] bg-[position:right_16px_center] bg-no-repeat">issue #324</pre>
`,
options: config,
},
{
code: `
<pre className={clsx(
"relative h-10 appearance-none truncate rounded-lg border-2 bg-background-tertiary px-4 pr-10 text-[16px] leading-[20px] text-content-primary outline-none invalid:text-content-inverse-tertiary focus:bg-surface disabled:text-content-disabled",
"bg-[url('/chevron-down.svg')] bg-[size:20px_20px] bg-[position:right_16px_center] bg-no-repeat",
error
? "border-border-negative"
: "border-background-tertiary focus:border-border-accent",
fullWidth && "w-full",
className
)}>issue #324</pre>
`,
options: config,
},
],

invalid: [
Expand Down

0 comments on commit 3554982

Please sign in to comment.