This commit is contained in:
maix0 2025-06-16 16:37:20 +02:00 committed by Maieul BOYER
parent aa96d79e47
commit 1bc33ab912
28 changed files with 94 additions and 18 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')
})