mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
nock: Added missing delay functions (#11029)
This commit is contained in:
committed by
Masahiro Wakame
parent
e3558df40e
commit
2eb6ca7acf
@@ -97,6 +97,12 @@ inst = inst.log(() => {
|
||||
|
||||
});
|
||||
|
||||
inst = inst.delay(2000);
|
||||
inst = inst.delayBody(2000);
|
||||
inst = inst.delayConnection(2000);
|
||||
inst.getTotalDelay();
|
||||
inst = inst.socketDelay(2000);
|
||||
|
||||
inst.done();
|
||||
bool = inst.isDone();
|
||||
inst.restore();
|
||||
|
||||
3
nock/nock.d.ts
vendored
3
nock/nock.d.ts
vendored
@@ -96,7 +96,10 @@ declare module "nock" {
|
||||
log(out: () => void): Scope;
|
||||
|
||||
delay(timeMs: number): Scope;
|
||||
delayBody(timeMs: number): Scope;
|
||||
delayConnection(timeMs: number): Scope;
|
||||
getTotalDelay(): number;
|
||||
socketDelay(timeMs: number): Scope;
|
||||
|
||||
times(repeats: number): Scope;
|
||||
once(): Scope;
|
||||
|
||||
Reference in New Issue
Block a user