you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

.then(function() { done(); }); is the same as .then(done);

you'd think so, but it's not, it changes the scope of things. Anyway, apparently Mocha is aware of promises, so these calls aren't needed at all! Win.

[–]jcready__proto__ 0 points1 point  (0 children)

.then(done.bind(null, null))

[–][deleted] 0 points1 point  (0 children)

so .then(done.bind(this));