title: How to mock ftp server for unit testing in nodeJS
body: <p>Could anybody tell me how to mock the FTP connection and downloading the file from FTP client for unit testing in nodeJS?</p>
  
  <p>I'm using FTP node module for connecting to FTP/SFTP client
  (<a href="https://www.npmjs.com/package/ftp" rel="nofollow noreferrer">https://www.npmjs.com/package/ftp</a>)</p>