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