Write tests for lib/downloader.js
Background
There are currently no tests specifically for lib/downloader.js
. As per the new guidelines (#87), every API must have its own tests, especially if its implementation is significantly complex or if it is otherwise of significant importance.
If we have these tests, it would also help verify certain behaviors specific to the Downloader
class (e.g. see #109).
Note that the way our tests for downloading are written also needs an update (see issue 7392), and this might be an opportunity to look into that issue as well.
What to change
Write tests for lib/downloader.js
.
/cc @snoack @kzar @hfiguiere