You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
592 B

4 years ago
'use strict'
const t = require('tap')
const boot = require('..')
const app = {}
boot(app)
t.plan(6)
app.use(function (f, opts, cb) {
cb()
}).after(() => {
t.pass('this is just called')
app.use(function (f, opts, cb) {
t.pass('this is just called')
cb()
})
}).after(function () {
t.pass('this is just called')
app.use(function (f, opts, cb) {
t.pass('this is just called')
cb()
})
}).after(function (err, cb) {
t.pass('this is just called')
cb(err)
})
app.ready().then(() => {
t.pass('ready')
}).catch(() => {
t.fail('this should not be called')
})