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
The following assertion should be supported:
assertComponents( result.children, <div> {showHeader ? <h1>Welcome!</h1> : null} <p>Hello</p> </div> );
Current behaviour: if showHeader is false assertion is failing in this false-positive case:
showHeader
false
AssertionError: Children count doesn't match for div actual: 1 expected: 2
Expected behaviour: assertion should pass in this case
Current workaround is filtering out null components on calling side:
null
assertComponents( result.children, showHeader ? ( <div> <h1>Welcome!</h1> <p>Hello</p> </div> ) : ( <div> <p>Hello</p> </div> ) );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following assertion should be supported:
Current behaviour: if
showHeader
isfalse
assertion is failing in this false-positive case:Expected behaviour: assertion should pass in this case
Current workaround is filtering out
null
components on calling side:The text was updated successfully, but these errors were encountered: