Skip to content

Commit

Permalink
Document that style assertions should not be camelCased
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke authored and ayrton committed Dec 15, 2016
1 parent 86454ce commit cedba77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,7 @@ const wrapper = mount(<Fixture />) // mount/render/shallow when applicable

expect(wrapper).to.have.style('border')
expect(wrapper).to.not.have.style('color')
expect(wrapper).to.have.style('margin-top') // do not use camelCase keys as you would do in your React component

expect(wrapper).to.have.style('border', '1px')
expect(wrapper).to.not.have.style('border', '2px')
Expand Down

0 comments on commit cedba77

Please sign in to comment.