ktongue/docker_container / .cache /opencode /node_modules /avvio /test /after-pass-through.test.js
download
raw
634 Bytes
'use strict'
const { test } = require('tap')
const boot = require('..')
test('proper support for after with a passed async function in wrapped mode', (t) => {
const app = {}
boot(app)
t.plan(5)
const e = new Error('kaboom')
app.use(function (f, opts) {
return Promise.reject(e)
}).after(function (err, cb) {
t.equal(err, e)
cb(err)
}).after(function () {
t.pass('this is just called')
}).after(function (err, cb) {
t.equal(err, e)
cb(err)
})
app.ready().then(() => {
t.fail('this should not be called')
}).catch(err => {
t.ok(err)
t.equal(err.message, 'kaboom')
})
})

Xet Storage Details

Size:
634 Bytes
·
Xet hash:
ddfb2d1a82c70dd36b2dfebec5331f98f5672aadc448dd6cf0fae48f1e2b4b88

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.