Skip to content

Commit 2903bc1

Browse files
authored
fix(docs): MockPoolInterceptOptions.method is optional (nodejs#1648)
1 parent 88eca8d commit 2903bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/MockPool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Returns: `MockInterceptor` corresponding to the input options.
5454
### Parameter: `MockPoolInterceptOptions`
5555

5656
* **path** `string | RegExp | (path: string) => boolean` - a matcher for the HTTP request path.
57-
* **method** `string | RegExp | (method: string) => boolean` - a matcher for the HTTP request method.
57+
* **method** `string | RegExp | (method: string) => boolean` - (optional) - a matcher for the HTTP request method. Defaults to `GET`.
5858
* **body** `string | RegExp | (body: string) => boolean` - (optional) - a matcher for the HTTP request body.
5959
* **headers** `Record<string, string | RegExp | (body: string) => boolean`> - (optional) - a matcher for the HTTP request headers. To be intercepted, a request must match all defined headers. Extra headers not defined here may (or may not) be included in the request and do not affect the interception in any way.
6060
* **query** `Record<string, any> | null` - (optional) - a matcher for the HTTP request query string params.

0 commit comments

Comments
 (0)