( tree: UrlTree, commands: readonly any[], queryParams?: Params, fragment?: string, )
| 720 | }); |
| 721 | |
| 722 | async function createRoot( |
| 723 | tree: UrlTree, |
| 724 | commands: readonly any[], |
| 725 | queryParams?: Params, |
| 726 | fragment?: string, |
| 727 | ): Promise<UrlTree> { |
| 728 | const router = TestBed.inject(Router); |
| 729 | await router.navigateByUrl(tree); |
| 730 | return router.createUrlTree(commands, { |
| 731 | relativeTo: router.routerState.root, |
| 732 | queryParams, |
| 733 | fragment, |
| 734 | }); |
| 735 | } |
| 736 | |
| 737 | function create( |
| 738 | relativeTo: ActivatedRoute, |
no test coverage detected