Add definition for missing replyWithError method in nock

https://github.com/pgte/nock/blob/a407b73ac8f0daa947dccf4a29b86b8f99138157/lib/scope.js#L62
This commit is contained in:
Roman Salnikov
2015-08-28 15:09:58 +05:00
parent 0a51ae619b
commit d14a6d94a6
+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;