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

Commit

Permalink
Test for multiline interpolations
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr committed Oct 23, 2016
1 parent a312119 commit 445f045
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const getCSS = require('./utils/general').getCSS
const getKeyframes = require('./utils/general').getKeyframes

// TODO Make it work for the UMD build, i.e. global vars
// TODO Fix ampersand in selectors
// TODO ENFORCE THESE RULES
// value-no-vendor-prefix – don't allow vendor prefixes
// property-no-vendor-prefix – don't allow vendor prefixes
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/interpolations/valid.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,12 @@ const Box3 = styled(Box2)`
color: ${color};
background: blue;
`

// Multiline
const Button4 = styled.button`
display: block;
${`
color: blue;
`}
background: blue;
`

0 comments on commit 445f045

Please sign in to comment.