export class NavParamsMock { private static returnParam = null ; public static setParams ( value ) { NavParamsMock . returnParam = value ; } public get ( key ) { if ( NavParamsMock . returnParam ) { return NavParamsMock . returnParam ; } return undefined ; } }