Mocha asynchronous Promise
suggest changedescribe('Suite Name', function() {
describe('#method()', function() {
it('should run without an error', function() {
return doSomething().then(result => {
expect(result).to.be.equal('hello world')
})
})
})
})
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents