Mocha asynchronous Promise

suggest change
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')
      })
    })
  })
})

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents