Projektstart
This commit is contained in:
16
backend/node_modules/fastify-plugin/test/mu1tip1e.composite.test.js
generated
vendored
Normal file
16
backend/node_modules/fastify-plugin/test/mu1tip1e.composite.test.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict'
|
||||
|
||||
const t = require('tap')
|
||||
const test = t.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.equal(fn[Symbol.for('plugin-meta')].name, 'mu1tip1e.composite.test-auto-0')
|
||||
t.equal(fn[Symbol.for('fastify.display-name')], 'mu1tip1e.composite.test-auto-0')
|
||||
})
|
||||
Reference in New Issue
Block a user