Projektstart
This commit is contained in:
14
backend/node_modules/avvio/test/esm.test.js
generated
vendored
Normal file
14
backend/node_modules/avvio/test/esm.test.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
|
||||
test('support esm import', (t) => {
|
||||
import('./esm.mjs').then(() => {
|
||||
t.pass('esm is supported')
|
||||
t.end()
|
||||
}).catch((err) => {
|
||||
process.nextTick(() => {
|
||||
throw err
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user