First commit

This commit is contained in:
2026-01-12 13:12:46 +01:00
parent b2d9501f6d
commit a1fbd8acf5
4413 changed files with 1245183 additions and 0 deletions

13
node_modules/fastify/test/set-error-handler.test.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
'use strict'
const t = require('tap')
const test = t.test
const Fastify = require('..')
const { FST_ERR_ERROR_HANDLER_NOT_FN } = require('../lib/errors')
test('setErrorHandler should throw an error if the handler is not a function', t => {
t.plan(1)
const fastify = Fastify()
t.throws(() => fastify.setErrorHandler('not a function'), new FST_ERR_ERROR_HANDLER_NOT_FN())
})