Skip to content

Commit

Permalink
Fixing broken best practices doc links (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
yavorg committed Jan 4, 2022
1 parent 09059fb commit 007b17f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/best-practices/mocking-request.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mocking Request

Undici have its own mocking [utility](docs/api/MockAgent.md). It allow us to intercept undici HTTP request and return mocked value instead. It can be useful for testing purposes.
Undici have its own mocking [utility](../api/MockAgent.md). It allow us to intercept undici HTTP request and return mocked value instead. It can be useful for testing purposes.

Example:

Expand Down Expand Up @@ -70,7 +70,7 @@ const badRequest = await bankTransfer('1234567890', '100')
assert.deepEqual(badRequest, { message: 'bank account not found' })
```

Explore other MockAgent functionality [here](docs/api/MockAgent.md)
Explore other MockAgent functionality [here](../api/MockAgent.md)

## Debug Mock Value

Expand Down
2 changes: 1 addition & 1 deletion docs/best-practices/proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Connecting through a proxy is possible by:

- Using [AgentProxy](docs/api/ProxyAgent.md).
- Using [AgentProxy](../api/ProxyAgent.md).
- Configuring `Client` or `Pool` constructor.

The proxy url should be passed to the `Client` or `Pool` constructor, while the upstream server url
Expand Down

0 comments on commit 007b17f

Please sign in to comment.