Aktueller Stand
This commit is contained in:
12
backend/node_modules/fastify-plugin/test/esm/esm.mjs
generated
vendored
12
backend/node_modules/fastify-plugin/test/esm/esm.mjs
generated
vendored
@@ -1,13 +1,11 @@
|
||||
import t from 'tap'
|
||||
|
||||
import { test } from 'node:test'
|
||||
import fp from '../../plugin.js'
|
||||
|
||||
t.test('esm base support', async t => {
|
||||
fp((fastify, opts, next) => {
|
||||
test('esm base support', (t) => {
|
||||
fp((_fastify, _opts, next) => {
|
||||
next()
|
||||
}, {
|
||||
fastify: '^3.0.0'
|
||||
fastify: '^5.0.0'
|
||||
})
|
||||
|
||||
t.end()
|
||||
t.assert.ok(true, 'fp function called without throwing an error')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user