diff --git a/nock/index.d.ts b/nock/index.d.ts index 447c591803..ef8afa86ac 100644 --- a/nock/index.d.ts +++ b/nock/index.d.ts @@ -48,6 +48,7 @@ declare namespace nock { patch: InterceptFunction; merge: InterceptFunction; delete: InterceptFunction; + options: InterceptFunction; intercept: ( uri: string | RegExp | { (uri: string): boolean; }, diff --git a/nock/nock-tests.ts b/nock/nock-tests.ts index 0d1b11159f..e2c28d3311 100644 --- a/nock/nock-tests.ts +++ b/nock/nock-tests.ts @@ -22,6 +22,9 @@ inst = scope.head(str); inst = scope.get(str); inst = scope.get(str, data); +inst = scope.options(str); +inst = scope.options(str, data); + inst = scope.patch(str); inst = scope.patch(str, str); inst = scope.patch(str, obj);