From fa3c237b75847f9589684c5c48c4b2f0bba54f0a Mon Sep 17 00:00:00 2001 From: "Matt R. Wilson" Date: Sun, 1 Mar 2020 11:51:56 -0700 Subject: [PATCH] fix(types): remove inaccurate Scope.restore method (#1940) This method does not exist and was added on accident. --- types/index.d.ts | 1 - types/tests.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index b58127639..5d93ebc48 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -127,7 +127,6 @@ declare namespace nock { done(): void isDone(): boolean - restore(): void pendingMocks(): string[] activeMocks(): string[] } diff --git a/types/tests.ts b/types/tests.ts index 7bd12074e..6a1d1f940 100644 --- a/types/tests.ts +++ b/types/tests.ts @@ -135,7 +135,6 @@ inst = inst.socketDelay(2000) scope.done() // $ExpectType void scope.isDone() // $ExpectType boolean -scope.restore() // $ExpectType void nock.recorder.rec() nock.recorder.rec(true)