CoolFace
Apppublic

strong-tie/inbound-calls

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
await-self.test.js32 linesDownload Raw Back to test
1'use strict'2 3const { test } = require('tap')4const boot = require('..')5 6test('await self', async (t) => {7  const app = {}8  boot(app)9 10  t.equal(await app, app)11})12 13test('await self three times', async (t) => {14  const app = {}15  boot(app)16 17  t.equal(await app, app)18  t.equal(await app, app)19  t.equal(await app, app)20})21 22test('await self within plugin', async (t) => {23  const app = {}24  boot(app)25 26  app.use(async (f) => {27    t.equal(await f, f)28  })29 30  t.equal(await app, app)31})32