Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): remove inaccurate Scope.restore method #1940

Merged
merged 1 commit into from Mar 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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