File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
goldens/public-api/core/testing
packages/core/testing/src Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ export class ComponentFixture<T> {
4949}
5050
5151// @public (undocumented)
52- export const ComponentFixtureAutoDetect: InjectionToken <boolean [] >;
52+ export const ComponentFixtureAutoDetect: InjectionToken <boolean >;
5353
5454// @public (undocumented)
55- export const ComponentFixtureNoNgZone: InjectionToken <boolean [] >;
55+ export const ComponentFixtureNoNgZone: InjectionToken <boolean >;
5656
5757// @public
5858export function discardPeriodicTasks(): void ;
Original file line number Diff line number Diff line change @@ -598,11 +598,8 @@ export class TestBedImpl implements TestBed {
598598 throw new Error ( `It looks like '${ stringify ( type ) } ' has not been compiled.` ) ;
599599 }
600600
601- // TODO: Don't cast as `InjectionToken<boolean>`, proper type is boolean[]
602- const noNgZone = this . inject ( ComponentFixtureNoNgZone as InjectionToken < boolean > , false ) ;
603- // TODO: Don't cast as `InjectionToken<boolean>`, proper type is boolean[]
604- const autoDetect : boolean =
605- this . inject ( ComponentFixtureAutoDetect as InjectionToken < boolean > , false ) ;
601+ const noNgZone = this . inject ( ComponentFixtureNoNgZone , false ) ;
602+ const autoDetect : boolean = this . inject ( ComponentFixtureAutoDetect , false ) ;
606603 const ngZone : NgZone | null = noNgZone ? null : this . inject ( NgZone , null ) ;
607604 const componentFactory = new ComponentFactory ( componentDef ) ;
608605 const initComponent = ( ) => {
Original file line number Diff line number Diff line change @@ -31,13 +31,12 @@ export class TestComponentRenderer {
3131/**
3232 * @publicApi
3333 */
34- export const ComponentFixtureAutoDetect =
35- new InjectionToken < boolean [ ] > ( 'ComponentFixtureAutoDetect' ) ;
34+ export const ComponentFixtureAutoDetect = new InjectionToken < boolean > ( 'ComponentFixtureAutoDetect' ) ;
3635
3736/**
3837 * @publicApi
3938 */
40- export const ComponentFixtureNoNgZone = new InjectionToken < boolean [ ] > ( 'ComponentFixtureNoNgZone' ) ;
39+ export const ComponentFixtureNoNgZone = new InjectionToken < boolean > ( 'ComponentFixtureNoNgZone' ) ;
4140
4241/**
4342 * @publicApi
You can’t perform that action at this time.
0 commit comments