☕️ Classic, reliable, trusted test framework for Node.js and the browser
promises be weird
TJ Holowaychuk0902ec2ef3b4
diff --git a/lib/runnable.js b/lib/runnable.jsindex 22b62ba3..6940bb77 100644--- a/lib/runnable.js+++ b/lib/runnable.js@@ -223,12 +223,7 @@ Runnable.prototype.run = function(fn){var result = fn.call(ctx);if (result && typeof result.then === 'function') {self.resetTimeout();- result.then(- function(){- done();- },- done- );+ result.then(function(){ done() }, done);} else {done();}