Skip to content

Commit

Permalink
add a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedBaset committed Sep 25, 2024
1 parent 9119153 commit 310a71e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/rules/no-phyisical-properties/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,25 @@ vitest.describe(RULE_NAME, () => {
errors: [{ messageId: NO_PHYSICAL_CLASSESS }],
skip: true,
},
{
name: "Bug Report: Concating",
code: `
const base = "left-1";
const Comp = ({ className }) => {
return <span className={cn(base, className, "text-left")} />
};
`,
output: `
const base = "start-1";
const Comp = ({ className }) => {
return <span className={cn(base, className, "text-start")} />
};
`,
errors: [
{messageId: NO_PHYSICAL_CLASSESS},
{messageId: NO_PHYSICAL_CLASSESS},
]
}
],
});

Expand Down

0 comments on commit 310a71e

Please sign in to comment.