Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/fastify/fastify
/ echoBody
Function
echoBody
test/validation-error-handling.test.js:18–20 ·
view source on GitHub ↗
(req, reply)
Source
from the content-addressed store, hash-verified
16
}
17
18
function
echoBody (req, reply) {
19
reply.code(200).send(req.body.name)
20
}
21
22
test(
'should work with valid payload'
,
async
(t) => {
23
t.plan(2)
Callers
nothing calls this directly
Calls
2
send
Method · 0.80
code
Method · 0.80
Tested by
no test coverage detected