MCPcopy Create free account
hub / github.com/fastify/fastify / custom

Function custom

test/internals/request-validate.test.js:201–212  ·  view source on GitHub ↗
({ schema, httpPart, url, method })

Source from the content-addressed store, hash-verified

199 const fastify = Fastify()
200 let called = 0
201 const custom = ({ schema, httpPart, url, method }) => {
202 t.assert.strictEqual(schema, defaultSchema)
203 t.assert.strictEqual(url, '/')
204 t.assert.strictEqual(method, 'GET')
205 t.assert.strictEqual(httpPart, 'querystring')
206
207 return input => {
208 called++
209 t.assert.deepStrictEqual(input, { hello: 'world' })
210 return true
211 }
212 }
213
214 t.plan(10)
215

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected