-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
fix: support .toHaveProperty('')
#12251
fix: support .toHaveProperty('')
#12251
Conversation
This regression was introduced by |
7c7012a
to
9317925
Compare
Added a quick fix for the regression. @SimenB |
Codecov Report
@@ Coverage Diff @@
## main #12251 +/- ##
=======================================
Coverage 67.51% 67.51%
=======================================
Files 328 328
Lines 17246 17249 +3
Branches 5071 5072 +1
=======================================
+ Hits 11643 11646 +3
Misses 5570 5570
Partials 33 33
Continue to review full report at Codecov.
|
9317925
to
399e472
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, thanks!
.toHaveProperty('')
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
When I try using
.toHaveProperty()
with an empty string:It gets the following error:
I believe it's a bug.
Test plan
Added a failed test.