Skip to content

Commit 9b70fb9

Browse files
committed
add failing test case for handling non string arguments
1 parent f11a924 commit 9b70fb9

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
@@ -32,6 +32,7 @@ ruleTester.run('no-deprecated-colors', rule, {
3232
`import {hello} from "@primer/components"; hello("colors.text.primary")`,
3333
`import {themeGet} from "@primer/components"; themeGet("space.text.primary")`,
3434
`import {themeGet} from "@primer/components"; themeGet(props.backgroundColorThemeValue)`,
35+
`import {themeGet} from "@primer/components"; themeGet(2)`,
3536
`import {themeGet} from "@other/design-system"; themeGet("colors.text.primary")`,
3637
`import {get} from "@other/constants"; get("space.text.primary")`,
3738
`import {Box} from '@primer/components'; <Box sx={styles}>Hello</Box>`,

0 commit comments

Comments
 (0)