[nock]: support options method

This commit is contained in:
Thomas Hourlier
2017-02-12 11:17:42 +01:00
parent a01e02004b
commit af5c97f0fe
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -48,6 +48,7 @@ declare namespace nock {
patch: InterceptFunction;
merge: InterceptFunction;
delete: InterceptFunction;
options: InterceptFunction;
intercept: (
uri: string | RegExp | { (uri: string): boolean; },
+3
View File
@@ -22,6 +22,9 @@ inst = scope.head(str);
inst = scope.get(str);
inst = scope.get(str, data);
inst = scope.options(str);
inst = scope.options(str, data);
inst = scope.patch(str);
inst = scope.patch(str, str);
inst = scope.patch(str, obj);