Mocha asynchronous callback
suggest changedescribe('Suite Name', function() {
describe('#method()', function() {
it('should run without an error', function(done) {
testSomething(err => {
if (err) return done(err);
done();
});
})
})
})
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents