Mocha asynchronous callback

suggest change
var expect = require("chai").expect;
describe('Suite Name', function() {
  describe('#method()', function() {
    it('should run without an error', function(done) {
      testSomething(err => {
        expect(err).to.not.be.equal(null)
        done()
      })
    })
  })
})

Feedback about page:

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



Table Of Contents