import { Flashlight } from '@ionic-native/flashlight' ; export class FlashlightMocks extends Flashlight { returns { Promise < boolean > } available ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < boolean > } switchOn ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < boolean > } switchOff ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < any > } toggle ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { boolean } isSwitchedOn ( ) { return true ; } ; }