File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
projects/igniteui-angular/src/lib/tabs/tabs Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1395,18 +1395,18 @@ describe('IgxTabs', () => {
13951395 } ) ;
13961396
13971397 it ( 'should hide scroll buttons when no longer needed after deleting tabs.' , async ( ) => {
1398- const fixture = TestBed . createComponent ( TabsContactsComponent ) ;
1399- const tabs = fixture . componentInstance . tabs ;
1400- fixture . componentInstance . wrapperDiv . nativeElement . style . width = '260px' ;
1401- fixture . detectChanges ( ) ;
1398+ const fix = TestBed . createComponent ( TabsContactsComponent ) ;
1399+ const fixTabs = fix . componentInstance . tabs ;
1400+ fix . componentInstance . wrapperDiv . nativeElement . style . width = '260px' ;
1401+ fix . detectChanges ( ) ;
14021402
1403- const rightScrollButton = tabs . headerContainer . nativeElement . children [ 2 ] ;
1404- const leftScrollButton = tabs . headerContainer . nativeElement . children [ 0 ] ;
1403+ const rightScrollButton = fixTabs . headerContainer . nativeElement . children [ 2 ] ;
1404+ const leftScrollButton = fixTabs . headerContainer . nativeElement . children [ 0 ] ;
14051405 expect ( leftScrollButton . clientWidth ) . toBeTruthy ( ) ;
14061406 expect ( rightScrollButton . clientWidth ) . toBeTruthy ( ) ;
14071407
1408- fixture . componentInstance . contacts . splice ( 0 , 1 ) ;
1409- fixture . detectChanges ( ) ;
1408+ fix . componentInstance . contacts . splice ( 0 , 1 ) ;
1409+ fix . detectChanges ( ) ;
14101410 await wait ( ) ;
14111411
14121412 expect ( leftScrollButton . clientWidth ) . toBeFalsy ( ) ;
You can’t perform that action at this time.
0 commit comments