W3cubDocs

/Angular

@angular/common/testing

entry-point

Supplies infrastructure for testing functionality supplied by @angular/common.

Entry point exports

Classes

MockLocationStrategy

A mock implementation of LocationStrategy that allows tests to fire simulated location events.

MockPlatformLocation

Mock implementation of URL state.

SpyLocation

A spy for Location that allows tests to fire simulated location events.

Functions

provideLocationMocks

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

Structures

MockPlatformLocationConfig

Mock platform location config

Types

MOCK_PLATFORM_LOCATION_CONFIG

Provider for mock platform location config

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