☕️ Classic, reliable, trusted test framework for Node.js and the browser
Fixed clobbering of current runnable. Closes #121
Tj Holowaychuk0d9a88877bc2
diff --git a/lib/runner.js b/lib/runner.jsindex ee6c8928..162e48d3 100644--- a/lib/runner.js+++ b/lib/runner.js@@ -152,8 +152,9 @@ Runner.prototype.hook = function(name, fn){, timer;function next(i) {- var hook = self.currentRunnable = hooks[i];+ var hook = hooks[i];if (!hook) return fn();+ self.currentRunnable = hook;self.emit('hook', hook);