Skip to content

Commit

Permalink
add test for nested components
Browse files Browse the repository at this point in the history
  • Loading branch information
MicheleBertoli committed Aug 22, 2018
1 parent 4d251d0 commit 24c0ca4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/toHaveStyleRule.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,3 +454,14 @@ test('component modifiers', () => {
}
)
})

test('nested', () => {
const Wrapper = styled.section`
padding: 4em;
background: papayawhip;
`

const MyComponent = () => <Wrapper />

toHaveStyleRule(<MyComponent />, 'background', 'papayawhip')
})

0 comments on commit 24c0ca4

Please sign in to comment.