/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/npm/node_modules/undici/lib/mock/mock-errors.js
28 строк
740 B
npm CLI robot
deps: upgrade npm to 11.13.0
27 апр 2026, 17:15
Не верифицирован
27 апр 2026, 17:15
19f9098
Код
Авторство
О чём код?
'use strict' const { UndiciError } = require('../core/errors') const kMockNotMatchedError = Symbol.for('undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED') /** * The request does not match any registered mock dispatches. */ class MockNotMatchedError extends UndiciError { constructor (message) { super(message) Error.captureStackTrace(this, MockNotMatchedError) this.name = 'MockNotMatchedError' this.message = message || 'The request does not match any registered mock dispatches' this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED' } static [Symbol.hasInstance] (instance) { return instance && instance[kMockNotMatchedError] === true } [kMockNotMatchedError] = true } module.exports = { MockNotMatchedError }