MCPcopy Create free account
hub / github.com/nodejs/undici / constructor

Method constructor

lib/mock/mock-errors.js:11–16  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

9 */
10class MockNotMatchedError extends UndiciError {
11 constructor (message) {
12 super(message)
13 this.name = 'MockNotMatchedError'
14 this.message = message || 'The request does not match any registered mock dispatches'
15 this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED'
16 }
17
18 static [Symbol.hasInstance] (instance) {
19 return instance && instance[kMockNotMatchedError] === true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected