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 +8 -0
- package/lib/intercepted_request_router.js +1 -1
- package/package.json +1 -1
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
|