logo
  • 教程列表
  • SO官方文档
  • 单元测试框架
    • 摩卡异步(asyncawait)
    • 摩卡同步
    • 摩卡异步(回调)
    • 摩卡异步(Promise)
  1. StackOverflow 文档
  2. Node.js 教程
  3. 单元测试框架
  4. 摩卡异步(Promise)

摩卡异步(Promise)

Created: November-22, 2018

describe('Suite Name', function() {
  describe('#method()', function() {
    it('should run without an error', function() {
      return doSomething().then(result => {
         expect(result).to.be.equal('hello world')
      })
    })
  })
})
  • 摩卡异步(回调)

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明