Skip to content

Commit b2c3374

Browse files
committed
add another failing test case
1 parent 0b852a4 commit b2c3374

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/rules/__tests__/no-color-css-vars.test.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,22 @@ ruleTester.run('no-color-css-vars', rule, {
137137
// message: 'Replace var(--color-accent-emphasis) with accent.emphasis'
138138
// }
139139
// ]
140+
// },
141+
142+
// {
143+
// code: `
144+
// const styles = { color: 'var(--color-fg-muted)' }
145+
// export const Fixture = <Button sx={styles}>Test</Button>
146+
// `,
147+
// output: `
148+
// const styles = { color: 'fg.muted' }
149+
// export const Fixture = <Button sx={styles}>Test</Button>
150+
// `,
151+
// errors: [
152+
// {
153+
// message: 'Replace var(--color-fg-muted) with fg.muted'
154+
// }
155+
// ]
140156
// }
141157
]
142158
})

0 commit comments

Comments
 (0)