import { Network } from '@ionic-native/network' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; import 'rxjs/add/observable/merge' ; export class NetworkMock extends Network { return { string } type : string = 'cellular' ; return { string } downlinkMax : string ; return { Observable < any > } onchange ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; returns { Observable < any > } onDisconnect ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; returns { Observable < any > } onConnect ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; }