First commit
This commit is contained in:
18
node_modules/fastify/test/imports.test.js
generated
vendored
Normal file
18
node_modules/fastify/test/imports.test.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict'
|
||||
|
||||
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')
|
||||
})
|
||||
Reference in New Issue
Block a user