Skip to content

Commit 0b852a4

Browse files
committed
fix syntax for last test
1 parent 6a0a63a commit 0b852a4

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

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

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,27 @@ ruleTester.run('no-color-css-vars', rule, {
111111
}
112112
]
113113
}
114-
//{
115-
// code: `import {sx, SxProp} from '@primer/react' export const HighlightToken = styled.span < SxProp > \`color: var(--color-accent-emphasis); ${sx}\` const ClickableTokenSpan = styled(HighlightToken)\` &:hover, &:focus { background-color: accent.muted;}\``,
116-
// output: `import {sx, SxProp} from '@primer/react' export const HighlightToken = styled.span < SxProp > \`color: accent.emphasis; ${sx}\` const ClickableTokenSpan = styled(HighlightToken)\` &:hover, &:focus { background-color: accent.muted;}\``,
114+
// {
115+
// code: `
116+
// import {sx, SxProp} from '@primer/react'
117+
// export const HighlightToken = styled.span<SxProp>\`
118+
// color: var(--color-accent-emphasis);
119+
// \${sx}
120+
// \`
121+
// const ClickableTokenSpan = styled(HighlightToken)\`
122+
// &:hover, &:focus { background-color: accent.muted;}
123+
// \`
124+
// `,
125+
// output: `
126+
// import {sx, SxProp} from '@primer/react'
127+
// export const HighlightToken = styled.span<SxProp>\`
128+
// color: accent.emphasis;
129+
// \${sx}
130+
// \`
131+
// const ClickableTokenSpan = styled(HighlightToken)\`
132+
// &:hover, &:focus { background-color: accent.muted;}
133+
// \`
134+
// `,
117135
// errors: [
118136
// {
119137
// message: 'Replace var(--color-accent-emphasis) with accent.emphasis'

0 commit comments

Comments
 (0)