nock 2.9.1 → 2.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.travis.yml CHANGED
@@ -3,4 +3,7 @@ node_js:
3
3
  - "0.10"
4
4
  - "0.11"
5
5
  - "0.12"
6
- script: "npm run coveralls"
6
+ - 4
7
+ script: "npm run coverage"
8
+ sudo: false
9
+ after_success: "npm run coveralls"
package/README.md CHANGED
@@ -152,7 +152,7 @@ Nock understands query strings. Instead of placing the entire URL, you can speci
152
152
  nock('http://example.com')
153
153
  .get('/users')
154
154
  .query({name: 'pedro', surname: 'teixeira'})
155
- .reply({results: [{id: 'pgte'}]});
155
+ .reply(200, {results: [{id: 'pgte'}]});
156
156
  ```
157
157
 
158
158
  To mock the entire url regardless of the passed query string:
@@ -161,7 +161,7 @@ To mock the entire url regardless of the passed query string:
161
161
  nock('http://example.com')
162
162
  .get('/users')
163
163
  .query(true)
164
- .reply({results: [{id: 'pgte'}]});
164
+ .reply(200, {results: [{id: 'pgte'}]});
165
165
  ```
166
166
 
167
167
  ## Specifying replies