()
| 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', () => { |
no test coverage detected