@@ -38,7 +38,7 @@ import {
38
38
withEventReplay ,
39
39
withIncrementalHydration ,
40
40
} from '@angular/platform-browser' ;
41
- import { TestBed } from '@angular/core/testing' ;
41
+ import { fakeAsync , TestBed } from '@angular/core/testing' ;
42
42
import { PLATFORM_BROWSER_ID } from '@angular/common/src/platform_id' ;
43
43
import { DEHYDRATED_BLOCK_REGISTRY } from '@angular/core/src/defer/registry' ;
44
44
import { JSACTION_BLOCK_ELEMENT_MAP } from '@angular/core/src/hydration/tokens' ;
@@ -1329,7 +1329,7 @@ describe('platform-server partial hydration integration', () => {
1329
1329
} ) ;
1330
1330
1331
1331
describe ( 'timer' , ( ) => {
1332
- it ( 'top level timer' , async ( ) => {
1332
+ it ( 'top level timer' , fakeAsync ( async ( ) => {
1333
1333
@Component ( {
1334
1334
selector : 'app' ,
1335
1335
template : `
@@ -1399,9 +1399,9 @@ describe('platform-server partial hydration integration', () => {
1399
1399
appRef . tick ( ) ;
1400
1400
1401
1401
expect ( appHostNode . outerHTML ) . toContain ( '<span id="test">end</span>' ) ;
1402
- } ) ;
1402
+ } ) ) ;
1403
1403
1404
- it ( 'nested timer' , async ( ) => {
1404
+ it ( 'nested timer' , fakeAsync ( async ( ) => {
1405
1405
@Component ( {
1406
1406
selector : 'app' ,
1407
1407
template : `
@@ -1487,7 +1487,7 @@ describe('platform-server partial hydration integration', () => {
1487
1487
appRef . tick ( ) ;
1488
1488
1489
1489
expect ( appHostNode . outerHTML ) . toContain ( '<span id="test">end</span>' ) ;
1490
- } ) ;
1490
+ } ) ) ;
1491
1491
} ) ;
1492
1492
1493
1493
it ( 'when' , async ( ) => {
0 commit comments