File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -448,7 +448,7 @@ describe('MatTabGroup', () => {
448
448
expect ( component . _tabs . toArray ( ) [ 0 ] . isActive ) . toBe ( true ) ;
449
449
} ) ;
450
450
451
- it ( 'should be able to select a new tab after creation' , ( ) => {
451
+ it ( 'should be able to select a new tab after creation' , fakeAsync ( ( ) => {
452
452
fixture . detectChanges ( ) ;
453
453
const component : MatTabGroup =
454
454
fixture . debugElement . query ( By . css ( 'mat-tab-group' ) ) . componentInstance ;
@@ -457,10 +457,11 @@ describe('MatTabGroup', () => {
457
457
fixture . componentInstance . selectedIndex = 3 ;
458
458
459
459
fixture . detectChanges ( ) ;
460
+ tick ( ) ;
460
461
461
462
expect ( component . selectedIndex ) . toBe ( 3 ) ;
462
463
expect ( component . _tabs . toArray ( ) [ 3 ] . isActive ) . toBe ( true ) ;
463
- } ) ;
464
+ } ) ) ;
464
465
465
466
it ( 'should not fire `selectedTabChange` when the amount of tabs changes' , fakeAsync ( ( ) => {
466
467
fixture . detectChanges ( ) ;
You can’t perform that action at this time.
0 commit comments