homebridge-config-ui-x
Version:
A web based management, configuration and control platform for Homebridge
36 lines (29 loc) • 592 B
JavaScript
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')
})