MCPcopy
hub / github.com/fastify/fastify / build

Function build

test/internals/decorator.test.js:11–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9test('decorate should add the given method to its instance', t => {
10 t.plan(1)
11 function build () {
12 server.add = decorator.add
13 server[kState] = {
14 listening: false,
15 closing: false,
16 started: false
17 }
18 return server
19 function server () {}
20 }
21
22 const server = build()
23 server.add('test', () => {})

Callers 1

decorator.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected