We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b54d24b commit cd28ddcCopy full SHA for cd28ddc
lib/mock/mock-errors.js
@@ -2,10 +2,12 @@
2
3
const { UndiciError } = require('../core/errors')
4
5
+/**
6
+ * The request does not match any registered mock dispatches.
7
+ */
8
class MockNotMatchedError extends UndiciError {
9
constructor (message) {
10
super(message)
- Error.captureStackTrace(this, MockNotMatchedError)
11
this.name = 'MockNotMatchedError'
12
this.message = message || 'The request does not match any registered mock dispatches'
13
this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED'
0 commit comments