这是我的 app.routing.ts
const updatedRoutes: Route[] = [
{
path: '',
children: [
{
path: '',
redirectTo: 'updatestatus',
pathMatch: 'full'
},
{
path: 'updates',
component: UpdaterComponent
},
{
path: 'updates/:Id',
component: UpdaterComponent
},
{
path: 'updatestatus',
component: StatusComponent
}
]
}];
export const ManagerRouting = RouterModule.forChild(updatedRoutes);
<router-outlet></router-outlet>
在 router.component.ts(RouterComponent)
请让我知道如何为上述代码编写单元测试。