This commit is contained in:
Michael Nahkies
2015-07-16 09:09:31 +12:00
parent 0fff32b558
commit 8d9ed6686d
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -45,6 +45,9 @@ inst = inst.merge(str, data);
inst = inst.merge(str, obj);
inst = inst.merge(str, regex);
inst = inst.query(obj);
inst = inst.query(bool);
inst = inst.intercept(str, str);
inst = inst.intercept(str, str, str);
inst = inst.intercept(str, str, obj);
+4 -1
View File
@@ -45,6 +45,9 @@ declare module "nock" {
merge(path: string, data?: Object): Scope;
merge(path: string, regex?: RegExp): Scope;
query(params: any): Scope;
query(acceptAnyParams: boolean): Scope;
intercept(path: string, verb: string, body?: string, options?: any): Scope;
intercept(path: string, verb: string, body?: Object, options?: any): Scope;
intercept(path: string, verb: string, body?: RegExp, options?: any): Scope;
@@ -55,7 +58,7 @@ declare module "nock" {
replyWithFile(responseCode: number, fileName: string): Scope;
defaultReplyHeaders(headers: Object): Scope;
matchHeader(name: string, value: string): Scope;
matchHeader(name: string, regex: RegExp): Scope;
matchHeader(name: string, fn: (value: string) => boolean): Scope;