nock 13.1.3 → 13.1.4

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/README.md CHANGED
@@ -1402,6 +1402,14 @@ return nockBack('promisedFixture.json').then(({ nockDone, context }) => {
1402
1402
  })
1403
1403
  ```
1404
1404
 
1405
+ Or, with async/await:
1406
+
1407
+ ```js
1408
+ const { nockDone, context } = await nockBack('promisedFixture.json')
1409
+ // your test code
1410
+ nockDone()
1411
+ ```
1412
+
1405
1413
  #### Options
1406
1414
 
1407
1415
  As an optional second parameter you can pass the following options
@@ -153,7 +153,7 @@ class InterceptedRequestRouter {
153
153
  return false
154
154
  }
155
155
 
156
- if (!buffer || buffer.length === 0) {
156
+ if (!buffer) {
157
157
  return true
158
158
  }
159
159
 
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "testing",
8
8
  "isolation"
9
9
  ],
10
- "version": "13.1.3",
10
+ "version": "13.1.4",
11
11
  "author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
12
12
  "repository": {
13
13
  "type": "git",