5 lines
5.8 KiB
JSON

{
"id": "api/common/testing",
"title": "@angular/common/testing",
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/common\", \"name\": \"@angular/common\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/common/testing\", \"name\": \"@angular/common/testing\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/common\">@angular/common</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/testing/PACKAGE.md?message=docs(...)%3A%20describe%20your%20change...\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/PACKAGE.md\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n<header class=\"api-header\">\n <h1 id=\"angularcommontesting\">@angular/common/testing<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/testing#angularcommontesting\"><i class=\"material-icons\">link</i></a></h1>\n <label class=\"api-type-label NaN\">entry-point</label>\n \n \n \n</header>\n\n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n <p>Supplies infrastructure for testing functionality supplied by <code>@angular/common</code>.</p>\n\n \n\n \n\n\n \n\n <h2 id=\"entry-point-exports\">Entry point exports<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/testing#entry-point-exports\"><i class=\"material-icons\">link</i></a></h2>\n \n \n \n \n \n\n \n \n \n <section class=\"export-list\">\n <h3 id=\"classes\">Classes<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/testing#classes\"><i class=\"material-icons\">link</i></a></h3>\n <table class=\"is-full-width list-table\">\n \n <tbody><tr>\n <td><code class=\"code-anchor\"><a href=\"api/common/testing/MockLocationStrategy\">MockLocationStrategy</a></code></td>\n <td>\n \n <p>A mock implementation of <a href=\"api/common/LocationStrategy\"><code>LocationStrategy</code></a> that allows tests to fire simulated\nlocation events.</p>\n\n </td>\n </tr>\n \n <tr>\n <td><code class=\"code-anchor\"><a href=\"api/common/testing/MockPlatformLocation\">MockPlatformLocation</a></code></td>\n <td>\n \n <p>Mock implementation of URL state.</p>\n\n </td>\n </tr>\n \n <tr>\n <td><code class=\"code-anchor\"><a href=\"api/common/testing/SpyLocation\">SpyLocation</a></code></td>\n <td>\n \n <p>A spy for <a href=\"api/common/Location\"><code>Location</code></a> that allows tests to fire simulated location events.</p>\n\n </td>\n </tr>\n \n </tbody></table>\n </section>\n \n\n \n \n \n\n \n \n \n\n \n \n \n <section class=\"export-list\">\n <h3 id=\"structures\">Structures<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/testing#structures\"><i class=\"material-icons\">link</i></a></h3>\n <table class=\"is-full-width list-table\">\n \n <tbody><tr>\n <td><code class=\"code-anchor\"><a href=\"api/common/testing/MockPlatformLocationConfig\">MockPlatformLocationConfig</a></code></td>\n <td>\n \n <p>Mock platform location config</p>\n\n </td>\n </tr>\n \n </tbody></table>\n </section>\n \n\n \n \n \n\n \n \n \n\n \n \n \n <section class=\"export-list\">\n <h3 id=\"types\">Types<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/testing#types\"><i class=\"material-icons\">link</i></a></h3>\n <table class=\"is-full-width list-table\">\n \n <tbody><tr>\n <td><code class=\"code-anchor\"><a href=\"api/common/testing/MOCK_PLATFORM_LOCATION_CONFIG\">MOCK_PLATFORM_LOCATION_CONFIG</a></code></td>\n <td>\n \n <p>Provider for mock platform location config</p>\n\n </td>\n </tr>\n \n </tbody></table>\n </section>\n \n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/common\n - api/common/testing/MOCK_PLATFORM_LOCATION_CONFIG\n - api/common/testing/MockLocationStrategy\n - api/common/testing/MockPlatformLocation\n - api/common/testing/MockPlatformLocationConfig\n - api/common/testing/SpyLocation\n-->\n<!-- links from this doc:\n - /api\n - api/common\n - api/common/Location\n - api/common/LocationStrategy\n - api/common/testing#angularcommontesting\n - api/common/testing#classes\n - api/common/testing#entry-point-exports\n - api/common/testing#structures\n - api/common/testing#types\n - api/common/testing/MOCK_PLATFORM_LOCATION_CONFIG\n - api/common/testing/MockLocationStrategy\n - api/common/testing/MockPlatformLocation\n - api/common/testing/MockPlatformLocationConfig\n - api/common/testing/SpyLocation\n - https://github.com/angular/angular/edit/master/packages/common/testing/PACKAGE.md?message=docs(...)%3A%20describe%20your%20change...\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/PACKAGE.md\n-->"
}