Interface: SpectacularApplicationHarness
A harness for testing application-level software artifacts.
Properties
rootComponent
• Readonly rootComponent: SpectacularAppComponent
The bootstrapped component.
Defined in
rootFixture
• Readonly rootFixture: ComponentFixture<SpectacularAppComponent>
The component fixture for the bootstrapped component.
Defined in
Methods
inject
▸ inject<T>(token, notFoundValue?, flags?): T
Resolve a dependency based on the specified dependency injection token.
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
token | Type<T> | InjectionToken<T> | AbstractType<T> | The token representing the dependency, that is a class or an InjectionToken. |
notFoundValue? | T | The default value in case the specified dependency has not been provided. Optional. Default is null. |
flags? | InjectFlags | Dependency injection options, for example InjectFlags.Optional | InjectFlags.SkipSelf. Optional. Default is InjectFlags.Default. |
Returns
T
Defined in
▸ inject<T>(token, notFoundValue, flags?): null | T
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type |
|---|---|
token | Type<T> | InjectionToken<T> | AbstractType<T> |
notFoundValue | null |
flags? | InjectFlags |
Returns
null | T