When testing Angular services, you can replace a real service with a _____ to simulate service behavior.
- component
- mock
- pipe
- spy
When testing Angular services, you can replace a real service with a mock to simulate service behavior and control the service's responses for testing purposes.
Loading...
Related Quiz
- Why is it important to unsubscribe from observables in an Angular application?
- The _____ strategy in Angular's change detection checks the component and its children only when an event is fired.
- In Angular, the data fetched by the Route Resolver can be accessed in the component through the route's _____ property.
- Jasmine allows you to set up initial conditions for your tests in a block known as _____.
- How can you identify and select a specific element on a webpage in a Protractor test?