Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fastify/fastify
/ plugin
Function
plugin
test/plugin.1.test.js:34–39 ·
view source on GitHub ↗
(instance, opts, done)
Source
from the content-addressed store, hash-verified
32
})
33
34
function
plugin (instance, opts, done) {
35
instance.get(
'/'
,
function
(request, reply) {
36
reply.send(
'hello'
)
37
})
38
done()
39
}
40
})
41
42
test(
'plugin metadata - naming plugins'
,
async
t => {
Callers
nothing calls this directly
Calls
2
send
Method · 0.80
done
Function · 0.50
Tested by
no test coverage detected