Files
simple-mail-cleaner/backend/node_modules/avvio/test/no-done.test.js
2026-01-22 19:05:45 +01:00

19 lines
299 B
JavaScript

'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')
}
})