homebridge-config-ui-x
Version:
A web based management, configuration and control platform for Homebridge
23 lines (17 loc) • 350 B
JavaScript
const test = require('tap').test
const boot = require('..')
test('calling done twice does not throw error', (t) => {
t.plan(2)
const app = boot()
app
.use(twiceDone)
.ready((err) => {
t.notOk(err, 'no error')
})
function twiceDone (s, opts, done) {
done()
done()
t.pass('did not throw')
}
})