完整代码加修复数据库连接字符串!!!

This commit is contained in:
heiye111
2025-09-20 23:02:18 +08:00
parent 48600edffc
commit 9f0b5a2e61
29 changed files with 1556 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
'use strict'
const { test } = require('node:test')
const fp = require('../plugin')
test('anonymous function should be named mu1tip1e.composite.test', (t) => {
t.plan(2)
const fn = fp((fastify, opts, next) => {
next()
})
t.assert.strictEqual(fn[Symbol.for('plugin-meta')].name, 'mu1tip1e.composite.test-auto-0')
t.assert.strictEqual(fn[Symbol.for('fastify.display-name')], 'mu1tip1e.composite.test-auto-0')
})