MCPcopy Create free account
hub / github.com/angular/angular / click

Function click

packages/router/test/router_link_spec.ts:400–402  ·  view source on GitHub ↗
(fixture: ComponentFixture<unknown>, id: string)

Source from the content-addressed store, hash-verified

398 class LinksWithScroll {}
399
400 function click(fixture: ComponentFixture<unknown>, id: string) {
401 fixture.nativeElement.querySelector(`#${id}`).click();
402 }
403
404 it('passes the scroll option to the navigation', async () => {
405 TestBed.configureTestingModule({providers: [provideRouter([{path: '**', children: []}])]});

Callers 1

Calls 1

clickMethod · 0.45

Tested by

no test coverage detected