/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/undici/src/lib/mock/mock-errors.js
29 строк
707 B
Node.js GitHub Bot
deps: update undici to 7.16.0
11 сен 2025, 20:21
Не верифицирован
11 сен 2025, 20:21
ac131bd
Код
Авторство
О чём код?
'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) 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 } get [kMockNotMatchedError] () { return true } } module.exports = { MockNotMatchedError }