Skip to content

Commit 3554982

Browse files
chore: add tests for issue 324
1 parent 775e9bb commit 3554982

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/lib/rules/no-unnecessary-arbitrary-value.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,26 @@ ruleTester.run("arbitrary-values", rule, {
7474
`,
7575
options: config,
7676
},
77+
{
78+
code: `
79+
<pre class="bg-[url('/chevron-down.svg')] bg-[size:20px_20px] bg-[position:right_16px_center] bg-no-repeat">issue #324</pre>
80+
`,
81+
options: config,
82+
},
83+
{
84+
code: `
85+
<pre className={clsx(
86+
"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",
87+
"bg-[url('/chevron-down.svg')] bg-[size:20px_20px] bg-[position:right_16px_center] bg-no-repeat",
88+
error
89+
? "border-border-negative"
90+
: "border-background-tertiary focus:border-border-accent",
91+
fullWidth && "w-full",
92+
className
93+
)}>issue #324</pre>
94+
`,
95+
options: config,
96+
},
7797
],
7898

7999
invalid: [

0 commit comments

Comments
 (0)