File

src/app/tests/mocks/routing-state.ts

Description

Mock for RoutingStateService.

Create a mocked service: const routingStateService = new MockRoutingStateService(); TestBed.configureTestingModule({ providers: [ { provide: RoutingStateService, useValue: routingStateService } ] }).compileComponents();

Example

Index

Methods

Methods

Public back
back(defaultUrl: string, isNotRegex?: RegExp)
Parameters :
Name Type Optional Description
defaultUrl string
isNotRegex RegExp true
Returns : void
export class MockRoutingStateService {

  public back(defaultUrl: string, isNotRegex?: RegExp) {}

}

results matching ""

    No results matching ""