nock
Advanced tools
Comparing version 13.0.11 to 13.1.0
@@ -95,2 +95,3 @@ 'use strict' | ||
this.readable = this.writable = false | ||
this.readableEnded = this.writableFinished = true | ||
@@ -97,0 +98,0 @@ process.nextTick(() => { |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "13.0.11", | ||
"version": "13.1.0", | ||
"author": "Pedro Teixeira <pedro.teixeira@gmail.com>", | ||
@@ -54,3 +54,3 @@ "repository": { | ||
"semantic-release": "^17.0.2", | ||
"sinon": "^9.0.0", | ||
"sinon": "^10.0.0", | ||
"sinon-chai": "^3.3.0", | ||
@@ -57,0 +57,0 @@ "typescript": "^4.2.2" |
@@ -643,2 +643,4 @@ # Nock | ||
**NOTE:** When request times is more than the number you specified, you will get an error before cleaning this interceptor. | ||
```js | ||
@@ -651,3 +653,11 @@ nock('http://zombo.com').get('/').times(4).reply(200, 'Ok') | ||
http.get('http://zombo.com/') // respond body "Ok" | ||
http.get('http://zombo.com/') // respond with zombo.com result | ||
// This code will get an error with message: | ||
// Nock: No match for request | ||
http.get('http://zombo.com/') | ||
// clean your interceptor | ||
nock.cleanAll() | ||
http.get('http://zombo.com/') // real respond with zombo.com result | ||
``` | ||
@@ -654,0 +664,0 @@ |
175112
3431
1598