首页 文章
  • 0 votes
     answers
     views

    Mocha,should.js和Promise捕获回调

    我试图在使用mocha的异步承诺失败测试中断言正确的错误消息,但我的测试没有通过,我不知道为什么 . 这是代码 - 承诺是 'use strict'; let getFailingPromise = function() { return new Promise(function(resolve, reject) { // simply fail on the next tick...

热门问题