( tree: UrlTree, commands: readonly any[], queryParams?: Params, fragment?: string, )
| 692 | }); |
| 693 | |
| 694 | async function createRoot( |
| 695 | tree: UrlTree, |
| 696 | commands: readonly any[], |
| 697 | queryParams?: Params, |
| 698 | fragment?: string, |
| 699 | ): Promise<UrlTree> { |
| 700 | const router = TestBed.inject(Router); |
| 701 | await router.navigateByUrl(tree); |
| 702 | return router.createUrlTree(commands, { |
| 703 | relativeTo: router.routerState.root, |
| 704 | queryParams, |
| 705 | fragment, |
| 706 | }); |
| 707 | } |
| 708 | |
| 709 | function create( |
| 710 | relativeTo: ActivatedRoute, |
no test coverage detected