test('support works standalone', async (t) => { const fastify = Fastify() fastify.register(Support) await fastify.ready() t.equal(fastify.someSupport(), 'here support') })
test('support works standalone', (t) => { t.plan(2) const fastify = Fastify() fastify.register(Support) fastify.ready((err) => { t.error(err) t.equal(fastify.someSupport(), 'hugs') }) })
test('support works standalone', async (t) => { const fastify = Fastify() fastify.register(Support) await fastify.ready() t.equal(fastify.someSupport(), 'here support') })