没有摩卡的Superagent链接请求

时间:2016-03-23 07:15:54

标签: javascript node.js superagent

question讨论了链接请求,但它正在使用mocha

如何在不使用superagentMocha的情况下链接it个请求(在最终方法中调用其他其他API)?

当我进行链接时

superagent.post( URL ).send( DATA ).end( function(err,res){
  console.log("1");
  superagent.post( URL1 ).send( DATA1 ).end( function(err,res){
    console.log("2");
  });
});

控制台上没有显示console.log。

0 个答案:

没有答案