import { Injectable } from '@angular/core' ; import { NavigationExtras } from '@angular/router' ; @ Injectable ( ) export class MockRouter { async navigate ( commands , extras ? ) { return Promise . resolve ( true ) ; } }