You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test does not fail because only the first div is tested. Since jQuery usually performs operations for every selected element, this was surprise for me.
I don't think the current behaviour should be changed because otherwise it could happen that tests, which fail at the moment because an empty jQuery is passed to expect() would suddenly succeed. However, I think it would be convenient to introduce the each keyword which performs the expectation for every given element. Example:
I have noticed that only the first element which is passed to the
expect
function is tested for the expectation. Example:This test does not fail because only the first
div
is tested. Since jQuery usually performs operations for every selected element, this was surprise for me.I don't think the current behaviour should be changed because otherwise it could happen that tests, which fail at the moment because an empty jQuery is passed to
expect()
would suddenly succeed. However, I think it would be convenient to introduce theeach
keyword which performs the expectation for every given element. Example:What do you think?
The text was updated successfully, but these errors were encountered: