src/app/tests/mocks/routing-state.ts
Mock for RoutingStateService.
Create a mocked service: const routingStateService = new MockRoutingStateService(); TestBed.configureTestingModule({ providers: [ { provide: RoutingStateService, useValue: routingStateService } ] }).compileComponents();
Methods |
|
Public back |
back(defaultUrl: string, isNotRegex?: RegExp)
|
Defined in src/app/tests/mocks/routing-state.ts:16
|
Returns :
void
|
export class MockRoutingStateService {
public back(defaultUrl: string, isNotRegex?: RegExp) {}
}