Mocha asynchronous callback

suggest change
describe('Suite Name', function() {
  describe('#method()', function() {
    it('should run without an error', function(done) {
      testSomething(err => {
        if (err) return done(err);
        done();
      });
    })
  })
})

Feedback about page:

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



Table Of Contents