Skip to content

Commit

Permalink
test: add test for issue #135
Browse files Browse the repository at this point in the history
  • Loading branch information
francoismassart committed Dec 29, 2022
1 parent be3a826 commit 74ab55d
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions tests/lib/rules/no-contradicting-classname.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,25 +630,25 @@ ruleTester.run("no-contradicting-classname", rule, {
],
errors: generateErrors(["px-2 px-4"]),
},
// {
// /* Issue #135 */
// code: `
// const buttons = cva({
// variants: {
// variant: {
// primary: "bg-white text-black font-bold px-4 bg-red",
// secondary: "bg-black text-white font-semibold px-5 bg-red",
// },
// },
// });
// `,
// options: [
// {
// callees: ["cva"],
// },
// ],
// errors: [...generateErrors("bg-white bg-red"), ...generateErrors("bg-black bg-red")],
// },
{
/* Issue #135 */
code: `
const buttons = cva({
variants: {
variant: {
primary: "bg-white text-black font-bold px-4 bg-black",
secondary: "bg-black text-white font-semibold px-5 bg-transparent",
},
},
});
`,
options: [
{
callees: ["cva"],
},
],
errors: [...generateErrors("bg-white bg-black"), ...generateErrors("bg-black bg-transparent")],
},
{
code: `
<div className={\`stroke-white stroke-none \${ctl('-outline-offset-2 outline-offset-4')}\`}>
Expand Down

0 comments on commit 74ab55d

Please sign in to comment.