Skip to content

Commit

Permalink
Fix styles.test fixtures after stylis upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Feb 18, 2018
1 parent d2552a9 commit 48978ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/test/styles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,28 +74,28 @@ describe('with styles', () => {
const rule1 = {
backgroundColor: 'blue',
'&:hover': {
textDecoration: 'underline',
color: 'green',
},
}
const Comp = styled.div`
${rule1}
`
shallow(<Comp />)
expectCSSMatches('.sc-a {} .b { background-color:blue; } .b:hover { text-decoration:underline; }')
expectCSSMatches('.sc-a {} .b { background-color:blue; } .b:hover { color:green; }')
})

it('should handle inline style objects with pseudo selectors', () => {
const rule1 = {
backgroundColor: 'blue',
'&:hover': {
textDecoration: 'underline',
color: 'green',
},
}
const Comp = styled.div`
${rule1}
`
shallow(<Comp />)
expectCSSMatches('.sc-a {} .b { background-color:blue; } .b:hover { text-decoration:underline; }')
expectCSSMatches('.sc-a {} .b { background-color:blue; } .b:hover { color:green; }')
})

it('should handle inline style objects with nesting', () => {
Expand Down
Loading

0 comments on commit 48978ff

Please sign in to comment.