Warning, /firebird/firebird-ng/src/app/app.routes.spec.ts is written in an unsupported language. File is not indexed.
0001 import { routes } from './app.routes';
0002
0003 // The initial bundle rule: a route component imported statically would put
0004 // its page, and through the display pages three.js, into the initial bundle.
0005 describe('app routes', () => {
0006 it('load every page lazily', () => {
0007 for (const route of routes) {
0008 if (route.redirectTo !== undefined) continue;
0009 expect(route.component, `route '${route.path}'`).toBeUndefined();
0010 expect(route.loadComponent, `route '${route.path}'`).toBeTypeOf('function');
0011 }
0012 });
0013
0014 it("include Firebird's pages and the flagship's developer pages", () => {
0015 expect(routes.map(route => route.path)).toEqual(
0016 ['', 'display', 'split-window', 'config', 'geometry', 'playground', 'shell', 'palette']);
0017 });
0018 });