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
#33 implements expected arg length matches actual invocation, which should have been implemented all along (oversight).
This means we should probably provide a way to stub or verify an interaction when we don't care about all the args to work around this. Whatever we do ought to be symmetrical between when & verify's API for ease of understanding.
So basically, the second argument to when could be an options object that's stored with the stubbing (or used by the verify) to modify how matching occurs. This gives us some breathing room for other features that would deviate from the default behavior, too.
#33 implements expected arg length matches actual invocation, which should have been implemented all along (oversight).
This means we should probably provide a way to stub or verify an interaction when we don't care about all the args to work around this. Whatever we do ought to be symmetrical between when & verify's API for ease of understanding.
Some ideas:
So basically, the second argument to when could be an options object that's stored with the stubbing (or used by the verify) to modify how matching occurs. This gives us some breathing room for other features that would deviate from the default behavior, too.
One more example:
The text was updated successfully, but these errors were encountered: