(selectedIndex?: number)
| 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', () => { |