Files
node-fastify/node_modules/fastify-plugin/test/esm/esm.mjs
2025-09-20 23:02:18 +08:00

12 lines
249 B
JavaScript

import { test } from 'node:test'
import fp from '../../plugin.js'
test('esm base support', (t) => {
fp((fastify, opts, next) => {
next()
}, {
fastify: '^5.0.0'
})
t.assert.ok(true, 'fp function called without throwing an error')
})