const dns = jest.genMockFromModule('dns')

function lookup(hostname, options, callback = jest.fn()) {
  let cb = callback
  if (typeof options === 'function') {
    cb = options
  }
  process.nextTick(cb, null, hostname)
}

dns.lookup = lookup

module.exports = dns

@@ -36,16 +36,166 @@
 'dns')%0A%0A
+/**%0A * lookup - Mock lookup.%0A *%0A * @param  %7Bstring%7D hostname Hostname%0A * @param  %7Bobject%7D options Options%0A * @param  %7BFunction%7D callback Callback%0A */%0A
 function

fix jsdoc issues in test dir