MCPcopy Create free account
hub / github.com/angular/components / createComponent

Function createComponent

src/material/tabs/tab-header.spec.ts:234–245  ·  view source on GitHub ↗
(selectedIndex?: number)

Source from the content-addressed store, hash-verified

232 });
233
234 function createComponent(selectedIndex?: number) {
235 const fixture = TestBed.createComponent(SimpleTabHeaderApp);
236
237 if (selectedIndex !== undefined) {
238 fixture.componentInstance.selectedIndex = selectedIndex;
239 }
240
241 fixture.detectChanges();
242 appComponent = fixture.componentInstance;
243 tabListContainer = appComponent.tabHeader._tabListContainer.nativeElement;
244 return fixture;
245 }
246 });
247
248 describe('pagination', () => {

Callers 1

tab-header.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected