PHP 8.2.30
Preview: router.spec.js Size: 484 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/lib/backend/utils/router/router.spec.js

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:31:42
Edit Download
2.25 KB lrw-r--r-- 2026-02-28 00:31:56
Edit Download
4.71 KB lrw-r--r-- 2026-02-28 00:31:48
Edit Download
484 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download

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