To test directives with dependencies, Angular provides the _______ class which allows you to inject dependencies and spy on their usage.
- ComponentFixture
- TestBed
- TestBedDependency
- TestBedStub
To test directives with dependencies, Angular provides the TestBed class, which allows you to configure testing modules and inject dependencies.
Loading...
Related Quiz
- How can you dynamically add a new control to a Form Array in Angular?
- What technique can be used to ensure that an observable is automatically unsubscribed from, even if it was not manually unsubscribed?
- The _____ decorator allows you to access route parameters within an Angular component.
- To ensure that an Angular animation has completed before starting another one, you can use _______.
- Which RxJS operator is used to transform the items emitted by an Observable?