mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
3c6258c85b
The `setupTestingRouter` function is a factory function for creating a new instance of the `Router`. This function is effectively a no-op. Developers should use `RouterModule.forRoot` or `provideRouter` in tests instead. BREAKING CHANGE: The `setupTestingRouter` function has been removed. Use `RouterModule.forRoot` or `provideRouter` to setup the `Router` for tests instead. PR Close #51826
1.5 KiB
1.5 KiB
API Report File for "@angular/router_testing"
Do not edit this file. It is a report generated by API Extractor.
import { ComponentFixture } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import { ExtraOptions } from '@angular/router';
import * as i0 from '@angular/core';
import * as i1 from '@angular/router';
import { ModuleWithProviders } from '@angular/core';
import { Routes } from '@angular/router';
import { Type } from '@angular/core';
// @public
export class RouterTestingHarness {
static create(initialUrl?: string): Promise<RouterTestingHarness>;
detectChanges(): void;
readonly fixture: ComponentFixture<unknown>;
navigateByUrl(url: string): Promise<null | {}>;
navigateByUrl<T>(url: string, requiredRoutedComponentType: Type<T>): Promise<T>;
get routeDebugElement(): DebugElement | null;
get routeNativeElement(): HTMLElement | null;
}
// @public
export class RouterTestingModule {
// (undocumented)
static withRoutes(routes: Routes, config?: ExtraOptions): ModuleWithProviders<RouterTestingModule>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<RouterTestingModule, never>;
// (undocumented)
static ɵinj: i0.ɵɵInjectorDeclaration<RouterTestingModule>;
// (undocumented)
static ɵmod: i0.ɵɵNgModuleDeclaration<RouterTestingModule, never, never, [typeof i1.RouterModule]>;
}
// (No @packageDocumentation comment for this package)