Skip to content

Commit f11a924

Browse files
committed
add failing test case for handling non literal arguments
1 parent b086a62 commit f11a924

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rules/__tests__/no-deprecated-colors.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ ruleTester.run('no-deprecated-colors', rule, {
3131
`import {Box} from "@primer/components"; <Box color="fg.default">Hello</Box>`,
3232
`import {hello} from "@primer/components"; hello("colors.text.primary")`,
3333
`import {themeGet} from "@primer/components"; themeGet("space.text.primary")`,
34+
`import {themeGet} from "@primer/components"; themeGet(props.backgroundColorThemeValue)`,
3435
`import {themeGet} from "@other/design-system"; themeGet("colors.text.primary")`,
3536
`import {get} from "@other/constants"; get("space.text.primary")`,
3637
`import {Box} from '@primer/components'; <Box sx={styles}>Hello</Box>`,

0 commit comments

Comments
 (0)