import { DNS } from '@ionic-native/dns' ; export class DNSMock extends DNS { param hostname returns { Promise < string > } resolve ( hostname ) { let response = '' ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; }