Promise.all not returning
<p>I have been trying to get Promise.all to work with no success with a list of promises, so instead tried it with just an array of one promise instead and I get the same issue:</p>

<pre><code>  let tasks = [];
  tasks.push(function(resolve, reject){
    superagent
    .post(URL_ROOT + url_path)
    .send(data)
    .end(function(err, res){
          if(err)
            reject(err);

          assert.equal(res.status, status.UNAUTHORIZED); //401
          console.log('Promise completed successfully');
          resolve();
    });
  });


Promise.all([
  new Promise(tasks[0])
]).then( function(){
  console.log("Done");
  done();
})
.catch( function(reason){
  throw new Error(reason);
});
</code></pre>

<p>"Promise completed successfully" prints just fine but then it just hangs, and 'Done' never prints.</p>

<p>Any help would be much appreciated.</p>