fatsify核心功能示例测试!!!
This commit is contained in:
10
node_modules/fastify/test/plugin.name.display.js
generated
vendored
Normal file
10
node_modules/fastify/test/plugin.name.display.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict'
|
||||
|
||||
const assert = require('node:assert')
|
||||
|
||||
module.exports = function (fastify, opts, done) {
|
||||
assert.strictEqual(fastify.pluginName, 'test-plugin')
|
||||
done()
|
||||
}
|
||||
|
||||
module.exports[Symbol.for('fastify.display-name')] = 'test-plugin'
|
||||
Reference in New Issue
Block a user