@@ -1393,25 +1393,25 @@ describe('IgxTabs', () => {
13931393 expect ( leftScrollButton . clientWidth ) . toBeFalsy ( ) ;
13941394 expect ( rightScrollButton . clientWidth ) . toBeFalsy ( ) ;
13951395 } ) ;
1396+ } ) ;
13961397
1397- it ( 'should hide scroll buttons when no longer needed after deleting tabs.' , async ( ) => {
1398- const fix = TestBed . createComponent ( TabsContactsComponent ) ;
1399- const fixTabs = fix . componentInstance . tabs ;
1400- fix . componentInstance . wrapperDiv . nativeElement . style . width = '260px' ;
1401- fix . detectChanges ( ) ;
1402-
1403- const rightScrollButton = fixTabs . headerContainer . nativeElement . children [ 2 ] ;
1404- const leftScrollButton = fixTabs . headerContainer . nativeElement . children [ 0 ] ;
1405- expect ( leftScrollButton . clientWidth ) . toBeTruthy ( ) ;
1406- expect ( rightScrollButton . clientWidth ) . toBeTruthy ( ) ;
1407-
1408- fix . componentInstance . contacts . splice ( 0 , 1 ) ;
1409- fix . detectChanges ( ) ;
1410- await wait ( ) ;
1411-
1412- expect ( leftScrollButton . clientWidth ) . toBeFalsy ( ) ;
1413- expect ( rightScrollButton . clientWidth ) . toBeFalsy ( ) ;
1414- } ) ;
1398+ it ( 'should hide scroll buttons when no longer needed after deleting tabs.' , async ( ) => {
1399+ const fixture = TestBed . createComponent ( TabsContactsComponent ) ;
1400+ const tabs = fixture . componentInstance . tabs ;
1401+ fixture . componentInstance . wrapperDiv . nativeElement . style . width = '260px' ;
1402+ fixture . detectChanges ( ) ;
1403+
1404+ const rightScrollButton = tabs . headerContainer . nativeElement . children [ 2 ] ;
1405+ const leftScrollButton = tabs . headerContainer . nativeElement . children [ 0 ] ;
1406+ expect ( leftScrollButton . clientWidth ) . toBeTruthy ( ) ;
1407+ expect ( rightScrollButton . clientWidth ) . toBeTruthy ( ) ;
1408+
1409+ fixture . componentInstance . contacts . splice ( 0 , 1 ) ;
1410+ fixture . detectChanges ( ) ;
1411+ await wait ( ) ;
1412+
1413+ expect ( leftScrollButton . clientWidth ) . toBeFalsy ( ) ;
1414+ expect ( rightScrollButton . clientWidth ) . toBeFalsy ( ) ;
14151415 } ) ;
14161416
14171417 describe ( 'IgxTabs RTL' , ( ) => {
0 commit comments