Hello Everyone,
So I'm getting the below error message when trying to run the tests.
expect(wrapper).to.have.style('background-color').equal('#ccc');
- TypeError: (0 , _chai.expect)(...).to.have.style is not a function"
But when I write the code as below, everything works correctly.
expect(wrapper.props().style.backgroundColor).to.be.equal('#ccc');
Any of yours have gone through this before?
Hello Everyone,
So I'm getting the below error message when trying to run the tests.
expect(wrapper).to.have.style('background-color').equal('#ccc');But when I write the code as below, everything works correctly.
expect(wrapper.props().style.backgroundColor).to.be.equal('#ccc');Any of yours have gone through this before?