(defaultQueryParamsHandling: QueryParamsHandling)
| 596 | |
| 597 | describe('defaultQueryParamsHandling', () => { |
| 598 | async function setupRouter(defaultQueryParamsHandling: QueryParamsHandling): Promise<Router> { |
| 599 | TestBed.configureTestingModule({ |
| 600 | providers: [ |
| 601 | provideRouter( |
| 602 | [{path: '**', component: class {}}], |
| 603 | withRouterConfig({ |
| 604 | defaultQueryParamsHandling, |
| 605 | }), |
| 606 | ), |
| 607 | ], |
| 608 | }); |
| 609 | |
| 610 | const router = TestBed.inject(Router); |
| 611 | await router.navigateByUrl('/initial?a=1'); |
| 612 | return router; |
| 613 | } |
| 614 | |
| 615 | it('can use "merge" as the default', async () => { |
| 616 | const router = await setupRouter('merge'); |
no test coverage detected
searching dependent graphs…