{ "id": "api/common/testing", "title": "@angular/common/testing", "contents": "\n\n
\n
\n
\n \n API > @angular/common\n
\n \n
\n \n
\n

@angular/common/testinglink

\n \n \n \n \n
\n\n \n\n
\n

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

\n\n \n\n \n\n\n \n\n

Entry point exportslink

\n \n \n \n \n \n\n \n \n \n
\n

Classeslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
MockLocationStrategy\n \n

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

\n\n
MockPlatformLocation\n \n

Mock implementation of URL state.

\n\n
SpyLocation\n \n

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

\n\n
\n
\n \n\n \n \n \n\n \n \n \n\n \n \n \n
\n

Structureslink

\n \n \n \n \n \n \n \n
MockPlatformLocationConfig\n \n

Mock platform location config

\n\n
\n
\n \n\n \n \n \n\n \n \n \n\n \n \n \n
\n

Typeslink

\n \n \n \n \n \n \n \n
MOCK_PLATFORM_LOCATION_CONFIG\n \n

Provider for mock platform location config

\n\n
\n
\n \n\n
\n
\n\n\n" }