import { DBMeter } from '@ionic-native/db-meter' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class DBMeterMock extends DBMeter { start ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; hidden stop ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < boolean > } isListening ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < any > } delete ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }