(defaultQueryParamsHandling: QueryParamsHandling)
| 682 | |
| 683 | describe('defaultQueryParamsHandling', () => { |
| 684 | async function setupRouter(defaultQueryParamsHandling: QueryParamsHandling): Promise<Router> { |
| 685 | TestBed.configureTestingModule({ |
| 686 | providers: [ |
| 687 | provideRouter( |
| 688 | [{path: '**', component: class {}}], |
| 689 | withRouterConfig({ |
| 690 | defaultQueryParamsHandling, |
| 691 | }), |
| 692 | ), |
| 693 | ], |
| 694 | }); |
| 695 | |
| 696 | const router = TestBed.inject(Router); |
| 697 | await router.navigateByUrl('/initial?a=1'); |
| 698 | return router; |
| 699 | } |
| 700 | |
| 701 | it('can use "merge" as the default', async () => { |
| 702 | const router = await setupRouter('merge'); |
no test coverage detected