Update checked-in dependencies
This commit is contained in:
parent
e292db6207
commit
6b12e3d9d9
68 changed files with 714 additions and 202 deletions
11
node_modules/nock/README.md
generated
vendored
11
node_modules/nock/README.md
generated
vendored
|
|
@ -1066,6 +1066,17 @@ if (!nock.isActive()) {
|
|||
}
|
||||
```
|
||||
|
||||
### .clone()
|
||||
|
||||
You can clone a scope by calling `.clone()` on it:
|
||||
|
||||
```js
|
||||
const scope = nock('http://example.test')
|
||||
|
||||
const getScope = scope.get('/').reply(200)
|
||||
const postScope = scope.clone().post('/').reply(200)
|
||||
```
|
||||
|
||||
## Restoring
|
||||
|
||||
You can restore the HTTP interceptor to the normal unmocked behaviour by calling:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue