code: function mockPrepareHosts (command) {
    // first filter all special case examples from the mockHost list (eg. no entry)
    const workingHosts = mockHosts.filter(i => i.indexOf('no entry') < 0)
    let r = workingHosts.join('\n')
  
    if (command.includes('-n')) {
      const ip = command.match(/arp -(.*){1} (.*)/)[2]
      r = mockHosts.find(i => i.indexOf(ip) > 0)
    }
  
    return r
  }
docs: /* eslint-enable