Aktueller Stand
This commit is contained in:
11
backend/node_modules/fastify/test/imports.test.js
generated
vendored
11
backend/node_modules/fastify/test/imports.test.js
generated
vendored
@@ -1,18 +1,17 @@
|
||||
'use strict'
|
||||
|
||||
const t = require('tap')
|
||||
const test = t.test
|
||||
const { test } = require('node:test')
|
||||
|
||||
test('should import as default', t => {
|
||||
t.plan(2)
|
||||
const fastify = require('..')
|
||||
t.ok(fastify)
|
||||
t.equal(typeof fastify, 'function')
|
||||
t.assert.ok(fastify)
|
||||
t.assert.strictEqual(typeof fastify, 'function')
|
||||
})
|
||||
|
||||
test('should import as esm', t => {
|
||||
t.plan(2)
|
||||
const { fastify } = require('..')
|
||||
t.ok(fastify)
|
||||
t.equal(typeof fastify, 'function')
|
||||
t.assert.ok(fastify)
|
||||
t.assert.strictEqual(typeof fastify, 'function')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user