基本schema测试

This commit is contained in:
2025-09-22 16:00:32 +08:00
commit b70b69c886
2754 changed files with 408678 additions and 0 deletions

18
node_modules/avvio/test/no-done.test.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
'use strict'
const { test } = require('tap')
const boot = require('..')
test('not taking done does not throw error.', (t) => {
t.plan(2)
const app = boot()
app.use(noDone).ready((err) => {
t.notOk(err, 'no error')
})
function noDone (s, opts) {
t.pass('did not throw')
}
})