This commit is contained in:
Maieul BOYER 2025-06-13 23:38:13 +02:00
parent 2f991d9743
commit 985c636360
No known key found for this signature in database
36 changed files with 6507 additions and 2 deletions

View file

@ -0,0 +1,13 @@
import { test } from 'node:test'
import * as assert from 'node:assert'
import Fastify from 'fastify'
import Support from '../../src/plugins/support.js'
test('support works standalone', async (t) => {
const fastify = Fastify()
// eslint-disable-next-line no-void
void fastify.register(Support)
await fastify.ready()
assert.equal(fastify.someSupport(), 'hugs')
})