W3cubDocs

/Angular

provideLocationMocks

function

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

provideLocationMocks(): Provider[]

Parameters

There are no parameters.

Returns

Provider[]

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/common/testing/provideLocationMocks