Aktueller Stand
This commit is contained in:
18
backend/node_modules/avvio/test/no-done.test.js
generated
vendored
Normal file
18
backend/node_modules/avvio/test/no-done.test.js
generated
vendored
Normal 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')
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user