import { SecureStorage , SecureStorageObject } from '@ionic-native/secure-storage' ; export class SecureStorageObjectMock extends SecureStorageObject { constructor ( _objectInstance ) { super ( _objectInstance ) ; } ; param key { string } returns { Promise < string > } get ( key ) { return new Promise ( ( resolve , reject ) => { resolve ( '' ) ; } ) ; } ; param key { string } param value { string } returns { Promise < any > } set ( key , value ) { return new Promise ( ( resolve , reject ) => { resolve ( '' ) ; } ) ; } ; param key { string } returns { Promise < string > } remove ( key ) { return new Promise ( ( resolve , reject ) => { resolve ( '' ) ; } ) ; } ; returns { Promise < string [ ] > } keys ( ) { let response = [ ] ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; returns { Promise < any > } clear ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } secureDevice ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; } export class SecureStorageMock extends SecureStorage { param store { string } returns { Promise < SecureStorageObject > } create ( store ) { let response = new SecureStorageObjectMock ( store ) ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; }