Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

Commit 9e86114

Browse files
committed
Added one-line css interpolations tests
1 parent f0378d5 commit 9e86114

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/fixtures/interpolations/valid.js

+16
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,19 @@ const Button8 = styled.button`
9090
${`color: ${color};`}
9191
${`background: blue;`}
9292
`
93+
// Simple interpolations in one-line css
94+
const display = 'block'
95+
const colorExpression = 'color: red;'
96+
// prettier-ignore
97+
const Button9 = styled.button`
98+
display: ${display}; ${colorExpression}
99+
`
100+
101+
// Complex interpolations in one-line css
102+
const display = 'block'
103+
const colorExpression = 'color: red;'
104+
const backgroundExpression = 'background: blue;'
105+
// prettier-ignore
106+
const Button9 = styled.button`
107+
display: ${display}; ${colorExpression} ${backgroundExpression}
108+
`

0 commit comments

Comments
 (0)