Merge pull request #5585 from bardt/patch-3

Add definition for missing replyWithError method in nock
This commit is contained in:
Masahiro Wakame
2015-09-03 01:44:04 +09:00
+1
View File
@@ -56,6 +56,7 @@ declare module "nock" {
reply(responseCode: number, body?: Object, headers?: Object): Scope;
reply(responseCode: number, callback: (uri: string, body: string) => string, headers?: Object): Scope;
replyWithFile(responseCode: number, fileName: string): Scope;
replyWithError(errorMessage: string): Scope;
defaultReplyHeaders(headers: Object): Scope;