We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems like the spaces are not ignored in colour which is making this test fail. It seems similar to Issue #89
I have tried below
it("should pass but it fails", () => { const Wrapper = styled.i` > svg { fill: rgb(185, 185, 185); } } ` const Svg = styled.svg`` const tree = renderer .create( <Wrapper> <Svg /> </Wrapper>, ) .toJSON() expect(tree).toHaveStyleRule("fill", "rgb(185, 185, 185)", { modifier: `> svg` }) })
but it returns with an error
Value mismatch for property 'fill' Expected "fill: rgb(185, 185, 185)" Received: "fill: rgb(185,185,185)"
The text was updated successfully, but these errors were encountered:
I have facing this false positive as well. One way to get around of it is removing the spaces, like:
expect(tree).toHaveStyleRule("fill", "rgb(185,185,185)", { modifier: `> svg` })
Sorry, something went wrong.
No branches or pull requests
It seems like the spaces are not ignored in colour which is making this test fail. It seems similar to Issue #89
I have tried below
but it returns with an error
The text was updated successfully, but these errors were encountered: