import { Insomnia } from '@ionic-native/insomnia' ; export class InsomniaMock extends Insomnia { returns { Promise < any > } keepAwake ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } allowSleepAgain ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }