main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
595 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | # MockErrors
|
---|
| 2 |
|
---|
| 3 | Undici exposes a variety of mock error objects that you can use to enhance your mock error handling.
|
---|
| 4 | You can find all the mock error objects inside the `mockErrors` key.
|
---|
| 5 |
|
---|
| 6 | ```js
|
---|
| 7 | import { mockErrors } from 'undici'
|
---|
| 8 | ```
|
---|
| 9 |
|
---|
| 10 | | Mock Error | Mock Error Codes | Description |
|
---|
| 11 | | --------------------- | ------------------------------- | ---------------------------------------------------------- |
|
---|
| 12 | | `MockNotMatchedError` | `UND_MOCK_ERR_MOCK_NOT_MATCHED` | The request does not match any registered mock dispatches. |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.