[x] I've checked that all new and existing tests pass
[x] I've updated the documentation if necessary
[x] I've added an entry in the CHANGELOG to credit myself
Description
This is my proposal for a matcher that checks ONLY the target parameters, and does not fail when more parameters are found. Just like containsAtLeastQueryParams, but it doesn't break when more parameters are found.
Motivation and Context
My motivation was that I need to stub a request but I didn't want to handle all the parameters, just 2 or 3.
So , this matches at least the target parameters, and ignores the others, if there are more than the target ones, ignores them, validating only the passed ones.
I don't know if I should bump spec version, if not, please say so, so I can revert.
allowMoreParams as a default param looks way better!
I’ll update.
Actually PR is closed but I’ll reopen soon when I finish all updates.
Thanks for reviewing
Checklist
Description
This is my proposal for a matcher that checks ONLY the target parameters, and does not fail when more parameters are found. Just like
containsAtLeastQueryParams
, but it doesn't break when more parameters are found.Motivation and Context
My motivation was that I need to stub a request but I didn't want to handle all the parameters, just 2 or 3. So , this matches at least the target parameters, and ignores the others, if there are more than the target ones, ignores them, validating only the passed ones.
I don't know if I should bump spec version, if not, please say so, so I can revert.
Thanks.