Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(types): remove inaccurate Scope.restore method (#1940)
This method does not exist and was added on accident.
  • Loading branch information
mastermatt committed Mar 1, 2020
1 parent 2c6c9dd commit fa3c237
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion types/index.d.ts
Expand Up @@ -127,7 +127,6 @@ declare namespace nock {

done(): void
isDone(): boolean
restore(): void
pendingMocks(): string[]
activeMocks(): string[]
}
Expand Down
1 change: 0 additions & 1 deletion types/tests.ts
Expand Up @@ -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)
Expand Down

0 comments on commit fa3c237

Please sign in to comment.