From d14a6d94a642db133d6aeaca64f075033bba12c9 Mon Sep 17 00:00:00 2001 From: Roman Salnikov Date: Fri, 28 Aug 2015 15:09:58 +0500 Subject: [PATCH] Add definition for missing replyWithError method in nock https://github.com/pgte/nock/blob/a407b73ac8f0daa947dccf4a29b86b8f99138157/lib/scope.js#L62 --- nock/nock.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/nock/nock.d.ts b/nock/nock.d.ts index 3cd92e65a..44d7080a0 100644 --- a/nock/nock.d.ts +++ b/nock/nock.d.ts @@ -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;