Comparing version 0.14.0 to 0.14.1
@@ -7,3 +7,3 @@ var RequestOverrider = require('./request_overrider'), | ||
http = require('http'), | ||
parse = require('url').parse | ||
parse = require('url').parse, | ||
ClientRequest = http.ClientRequest; | ||
@@ -10,0 +10,0 @@ |
{ "name" : "nock" | ||
, "description" : "HTTP Server mocking for Node.js" | ||
, "tags" : ["Mock", "HTTP", "testing", "isolation"] | ||
, "version" : "0.14.0" | ||
, "version" : "0.14.1" | ||
, "author" : "Pedro Teixeira <pedro.teixeira@gmail.com>" | ||
@@ -6,0 +6,0 @@ , "contributors" : |
@@ -39,13 +39,2 @@ # Nock [![Build Status](https://secure.travis-ci.org/flatiron/nock.png)](http://travis-ci.org/flatiron/nock) | ||
## .persist() | ||
You can make all the interceptors for a scope persist by calling `.persist()` on it: | ||
```js | ||
var scope = nock('http://persisssists.con') | ||
.persist() | ||
.get('/') | ||
.reply(200, "Persisting all the way"); | ||
``` | ||
## Specifying request body | ||
@@ -281,3 +270,13 @@ | ||
``` | ||
## .persist() | ||
You can make all the interceptors for a scope persist by calling `.persist()` on it: | ||
```js | ||
var scope = nock('http://persisssists.con') | ||
.persist() | ||
.get('/') | ||
.reply(200, "Persisting all the way"); | ||
``` | ||
# Logging | ||
@@ -284,0 +283,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
364