From d3adc16a08d95d6e331de55d7d3bf05a66a874a8 Mon Sep 17 00:00:00 2001 From: pack Date: Sun, 9 Aug 2026 10:54:08 +0000 Subject: stop tracking node_modules/ --- node_modules/undici/lib/mock/mock-errors.js | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 node_modules/undici/lib/mock/mock-errors.js (limited to 'node_modules/undici/lib/mock/mock-errors.js') diff --git a/node_modules/undici/lib/mock/mock-errors.js b/node_modules/undici/lib/mock/mock-errors.js deleted file mode 100644 index 3de5603..0000000 --- a/node_modules/undici/lib/mock/mock-errors.js +++ /dev/null @@ -1,28 +0,0 @@ -'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 -} -- cgit v1.2.3