fastify
Version:
Fast and low overhead web framework, for Node.js
19 lines (15 loc) • 343 B
JavaScript
const t = require('tap')
const test = t.test
test('should import as default', t => {
t.plan(2)
const fastify = require('..')
t.ok(fastify)
t.equal(typeof fastify, 'function')
})
test('should import as esm', t => {
t.plan(2)
const { fastify } = require('..')
t.ok(fastify)
t.equal(typeof fastify, 'function')
})