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
It doesn't pass. This is because when we get to JasmineUtils.eq(), where we are checking the expected vs actual arguments array, it passes in a hasKey implementation of hasDefinedKey. JasmineUtils.eq() invokes this block, which returns false in the case of above.
if (keys(b, hasKey).length !== size) {
return false;
}
The main cause is the implementation of hasDefinedKey, which isn't really suitable for an arguments value list
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
馃悰 Bug Report
To Reproduce
When we define this custom matcher:
and you attempt to use this like so
It doesn't pass. This is because when we get to
JasmineUtils.eq()
, where we are checking the expected vs actual arguments array, it passes in ahasKey
implementation ofhasDefinedKey
.JasmineUtils.eq()
invokes this block, which returns false in the case of above.The main cause is the implementation of
hasDefinedKey
, which isn't really suitable for an arguments value listExpected behavior
the internal jest code should delegate the equality check to the custom matcher.
The text was updated successfully, but these errors were encountered: