From af5c97f0fee472940ab2aa200e1df8bc389d1f99 Mon Sep 17 00:00:00 2001 From: Thomas Hourlier Date: Sun, 12 Feb 2017 11:17:42 +0100 Subject: [PATCH] [nock]: support options method --- nock/index.d.ts | 1 + nock/nock-tests.ts | 3 +++ 2 files changed, 4 insertions(+) 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);