(routes?: Routes)
| 45 | |
| 46 | export function navigationIntegrationTestSuite(browserAPI: 'history' | 'navigation') { |
| 47 | function setup(routes?: Routes): Router { |
| 48 | TestBed.configureTestingModule({ |
| 49 | providers: [ |
| 50 | provideRouter( |
| 51 | routes ?? [ |
| 52 | { |
| 53 | path: '**', |
| 54 | component: class {}, |
| 55 | }, |
| 56 | ], |
| 57 | ), |
| 58 | ], |
| 59 | }); |
| 60 | return TestBed.inject(Router); |
| 61 | } |
| 62 | describe('navigation', () => { |
| 63 | it('should navigate to the current URL', async () => { |
| 64 | TestBed.configureTestingModule({ |
no test coverage detected
searching dependent graphs…