nock
Advanced tools
Comparing version 13.0.1 to 13.0.2
@@ -298,2 +298,5 @@ 'use strict' | ||
matchedInterceptor.markConsumed() | ||
matchedInterceptor.req = req | ||
// wait to emit the finish event until we know for sure an Interceptor is going to playback. | ||
@@ -300,0 +303,0 @@ // otherwise an unmocked request might emit finish twice. |
@@ -127,4 +127,2 @@ 'use strict' | ||
function start() { | ||
interceptor.markConsumed() | ||
interceptor.req = req | ||
req.headers = req.getHeaders() | ||
@@ -131,0 +129,0 @@ |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "13.0.1", | ||
"version": "13.0.2", | ||
"author": "Pedro Teixeira <pedro.teixeira@gmail.com>", | ||
@@ -41,3 +41,3 @@ "repository": { | ||
"eslint-plugin-import": "^2.16.0", | ||
"eslint-plugin-mocha": "^6.2.0", | ||
"eslint-plugin-mocha": "^7.0.1", | ||
"eslint-plugin-node": "^11.0.0", | ||
@@ -44,0 +44,0 @@ "eslint-plugin-promise": "^4.1.1", |
@@ -577,3 +577,3 @@ # Nock | ||
When using `scope.reply()` to set a response body manually, you can have the | ||
When using `interceptor.reply()` to set a response body manually, you can have the | ||
`Content-Length` header calculated automatically. | ||
@@ -580,0 +580,0 @@ |
173065