// angular import { Injectable } from '@angular/core'; import { UrlTree } from '@angular/router'; // module import { IRouterExtensions, ExtendedNavigationExtras } from '../../index'; @Injectable() export class RouterExtensionsMock implements IRouterExtensions { navigate(commands: Array, extras?: ExtendedNavigationExtras): Promise { return Promise.resolve(true); } navigateByUrl(url: string | UrlTree, options?: ExtendedNavigationExtras): Promise { return Promise.resolve(true); } back(): void { return; } }