download
raw
488 Bytes
'use strict'
const { test } = require('tap')
const boot = require('..')
test('await self', async (t) => {
const app = {}
boot(app)
t.equal(await app, app)
})
test('await self three times', async (t) => {
const app = {}
boot(app)
t.equal(await app, app)
t.equal(await app, app)
t.equal(await app, app)
})
test('await self within plugin', async (t) => {
const app = {}
boot(app)
app.use(async (f) => {
t.equal(await f, f)
})
t.equal(await app, app)
})

Xet Storage Details

Size:
488 Bytes
·
Xet hash:
a3a45f0e0b82b6919a7603c519aa9a7c304199c56d8edf838cb29ffb8b7bdb44

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