MCPcopy
hub / github.com/angular/angular / setup

Function setup

packages/router/test/integration/navigation.spec.ts:47–61  ·  view source on GitHub ↗
(routes?: Routes)

Source from the content-addressed store, hash-verified

45
46export 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({

Callers 1

Calls 3

provideRouterFunction · 0.90
injectMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…