I am trying to test a style attribute for a React component. What is the best way to get style params in the test?
At this moment, my best option is to test if the H
You can use this method. It returns ReactElement.
let containerStyle = container.get(0).style; expect(containerStyle).to.have.property('opacity', '1');