7
7
OnChanges ,
8
8
SimpleChanges ,
9
9
ApplicationInitStatus ,
10
- ɵisStandalone ,
10
+ isStandalone ,
11
11
} from '@angular/core' ;
12
12
import { ComponentFixture , TestBed , tick } from '@angular/core/testing' ;
13
13
import { BrowserAnimationsModule , NoopAnimationsModule } from '@angular/platform-browser/animations' ;
@@ -321,7 +321,7 @@ function setComponentInputs<SutType>(
321
321
322
322
function overrideComponentImports < SutType > ( sut : Type < SutType > | string , imports : ( Type < any > | any [ ] ) [ ] | undefined ) {
323
323
if ( imports ) {
324
- if ( typeof sut === 'function' && ɵisStandalone ( sut ) ) {
324
+ if ( typeof sut === 'function' && isStandalone ( sut ) ) {
325
325
TestBed . overrideComponent ( sut , { set : { imports } } ) ;
326
326
} else {
327
327
throw new Error (
@@ -369,7 +369,7 @@ function addAutoDeclarations<SutType>(
369
369
return [ ...declarations , wrapper ] ;
370
370
}
371
371
372
- const components = ( ) => ( excludeComponentDeclaration || ɵisStandalone ( sut ) ? [ ] : [ sut ] ) ;
372
+ const components = ( ) => ( excludeComponentDeclaration || isStandalone ( sut ) ? [ ] : [ sut ] ) ;
373
373
return [ ...declarations , ...components ( ) ] ;
374
374
}
375
375
@@ -384,7 +384,7 @@ function addAutoImports<SutType>(
384
384
} ;
385
385
386
386
const routing = ( ) => ( routes ? [ RouterTestingModule . withRoutes ( routes ) ] : [ ] ) ;
387
- const components = ( ) => ( typeof sut !== 'string' && ɵisStandalone ( sut ) ? [ sut ] : [ ] ) ;
387
+ const components = ( ) => ( typeof sut !== 'string' && isStandalone ( sut ) ? [ sut ] : [ ] ) ;
388
388
return [ ...imports , ...components ( ) , ...animations ( ) , ...routing ( ) ] ;
389
389
}
390
390
0 commit comments