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

Function createComponent

src/material/list/selection-list.spec.ts:1438–1449  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1436 });
1437
1438 function createComponent(): ComponentFixture<SelectionListWithModel> {
1439 const fixture = TestBed.createComponent(SelectionListWithModel);
1440 fixture.detectChanges();
1441
1442 selectionListDebug = fixture.debugElement.query(By.directive(MatSelectionList))!;
1443 ngModel = selectionListDebug.injector.get<NgModel>(NgModel);
1444 listOptions = fixture.debugElement
1445 .queryAll(By.directive(MatListOption))
1446 .map(optionDebugEl => optionDebugEl.componentInstance);
1447
1448 return fixture;
1449 }
1450 });
1451
1452 describe('and formControl', () => {

Callers 1

Calls 1

getMethod · 0.65

Tested by

no test coverage detected