W3cubDocs

/Angular

provideLocationMocks

Returns mock providers for the Location and LocationStrategy classes. The mocks are helpful in tests to fire simulated location events.

API

function provideLocationMocks(): Provider[];

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/common/testing/provideLocationMocks