PHP 8.2.30
Preview: router.spec.ts Size: 482 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/backend/utils/router/router.spec.ts

import { expect } from 'chai'

import Router from './router.js'

describe('Router', function () {
  it('has both assets and routes', function () {
    expect(Router.assets).not.to.be.undefined
    expect(Router.routes).not.to.be.undefined
  })

  it('returns development bundle by default', function () {
    const asset = Router.assets.find((a) => a.path === '/frontend/assets/app.bundle.js')

    expect(asset && asset.src).to.contain('scripts/app-bundle.development.js')
  })
})

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
28 B lrw-r--r-- 2026-02-28 00:32:28
Edit Download
2.25 KB lrw-r--r-- 2026-02-28 00:31:56
Edit Download
482 B lrw-r--r-- 2026-02-28 00:32:44
Edit Download
4.97 KB lrw-r--r-- 2026-02-28 00:32:44
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).