mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-03-30 19:55:26 +08:00
12 lines
284 B
TypeScript
12 lines
284 B
TypeScript
import { test } from 'tap'
|
|
import Fastify from 'fastify'
|
|
import Support from '../../src/plugins/support'
|
|
|
|
test('support works standalone', async (t) => {
|
|
const fastify = Fastify()
|
|
void fastify.register(Support)
|
|
await fastify.ready()
|
|
|
|
t.equal(fastify.someSupport(), 'hugs')
|
|
})
|