download
raw
429 Bytes
'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')
})

Xet Storage Details

Size:
429 Bytes
·
Xet hash:
c1c63780a4bb59eb88b956a0f0bc85591fd565d850b07141cccf52d4004b58b9

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.