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
feat: add new acceptNonStandardSearchParameters MockAgent option
add a new `acceptNonStandardSearchParameters` option to make
instances of `MockAgent` accept search parameters specified
using non-standard syntaxes such as multi-value items specified
with `[]` (e.g. `param[]=1¶m[]=2¶m[]=3`) and multi-value
items which values are comma separated (e.g. `param=1,2,3`)
Co-authored-by: Carlos Fuentes <me@metcoder.dev>
***ignoreTrailingSlash**`boolean` (optional) - Default: `false` - set the default value for `ignoreTrailingSlash` for interceptors.
22
22
23
+
***acceptNonStandardSearchParameters**`boolean` (optional) - Default: `false` - set to `true` if the matcher should also accept non standard search parameters such as multi-value items specified with `[]` (e.g. `param[]=1¶m[]=2¶m[]=3`) and multi-value items which values are comma separated (e.g. `param=1,2,3`).
24
+
23
25
### Example - Basic MockAgent instantiation
24
26
25
27
This will instantiate the MockAgent. It will not do anything until registered as the agent to use with requests and mock interceptions are added.
0 commit comments