Sindbad~EG File Manager

Current Path : /home/infinitibizsol/irfarms.infinitibizsol.com/node_modules/avvio/test/
Upload File :
Current File : /home/infinitibizsol/irfarms.infinitibizsol.com/node_modules/avvio/test/await-self.test.js

'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)
})

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists