阅读背景:

在节点中基于单元测试承诺的代码。js表达路线/控制器

来源:互联网 

Recently I switched from using callbacks to using promise in my rest api express app. But I'm having trouble with unit testing routes/controller with async behaviour of the promise. Here is the sample code that needs to be unit tested.Recently I switched from using callbacks to usi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: