describe('#My Test'){
var responseBody;
it('getting the response from service' , (done)=>{
request(paramsForHittingAPI ,(error , response , body)={
responseBody = body;
done();
);
);
it('Database validation' , (done)=>{
var promise = fuctionReturningPromiseContainingResultFromDatabaseOutput;
promise.done(function(result){
console.log(result.length);
console.log(responseBody.length);
done();
},function(error){
done();
);
});
}
运行输出时 10, 251
调试输出时 251, 251
与正常模式下运行时相比,调试时数据库结果不同 使用的命令是npn test 另请告诉我如何在chrome(特定命令)中调试它