-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
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
[1.0.0-beta.0] className assertion failing when element has multiple classNames #210
Comments
@intrepidOlivia those are two class names - i'd expect you would be using two assertions, not one, to test for those. |
Are you sure? As you can see, the two class names on the |
every API I’m familiar with that takes class names only takes one at a time, or an array. |
Perhaps so, but I resolved this problem by simply using vanilla enzyme's hasClass function: |
While as enzymes maintainer that surprises me, if enzyme works that way than certainly this matcher should as well. |
It works OK with |
@Hypnosphi to clarify; what's the difference between the two with |
|
Thanks for the clarification :-) |
As you can see the element selection has the correct className asserted but only seems to respect the first. Any suggestions?
The text was updated successfully, but these errors were encountered: