This repository was archived by the owner on Jul 26, 2023. It is now read-only.

Description
If assertion has a set of elements in it, toHaveClass matcher will pass if at least one of them has required class.
That's because according to jQuery docs hasClass will determine whether any of the matched elements are assigned the given class.
What I think is expected behavior, that matcher should not pass if at least one element in a set doesn't have expected class.