fatsify核心功能示例测试!!!
This commit is contained in:
17
node_modules/fastify/test/imports.test.js
generated
vendored
Normal file
17
node_modules/fastify/test/imports.test.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict'
|
||||
|
||||
const { test } = require('node:test')
|
||||
|
||||
test('should import as default', t => {
|
||||
t.plan(2)
|
||||
const fastify = require('..')
|
||||
t.assert.ok(fastify)
|
||||
t.assert.strictEqual(typeof fastify, 'function')
|
||||
})
|
||||
|
||||
test('should import as esm', t => {
|
||||
t.plan(2)
|
||||
const { fastify } = require('..')
|
||||
t.assert.ok(fastify)
|
||||
t.assert.strictEqual(typeof fastify, 'function')
|
||||
})
|
||||
Reference in New Issue
Block a user