(name: string)
| 494 | it('has the routes the tree declares, each bound to its component', () => { |
| 495 | expect(cg.getNodesByKind('route').map((r) => r.name).sort()).toEqual(['/', '/dashboard', '/dashboard/invoices/:invoiceId']); |
| 496 | const componentOf = (name: string): string | undefined => |
| 497 | cg.getOutgoingEdges(route(name).id).filter((e) => e.kind === 'calls').map((e) => cg.getNode(e.target)?.name)[0]; |
| 498 | expect(componentOf('/')).toBe('IndexComponent'); |
| 499 | // The index under the layout is the page at `/dashboard`. |
| 500 | expect(componentOf('/dashboard')).toBe('DashboardIndexComponent'); |
no test coverage detected