-
-
Save pquerna/7d89e159355d57a0663a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bin/expresso b/bin/expresso | |
index 8f18f55..df35400 100755 | |
--- a/bin/expresso | |
+++ b/bin/expresso | |
@@ -705,7 +705,7 @@ function runSuite(title, tests) { | |
var setup = tests.setup || function(fn){ fn(); }; | |
// Iterate tests | |
- (function next(){ | |
+ function next(){ | |
if (keys.length) { | |
var key, | |
test = tests[key = keys.shift()]; | |
@@ -753,7 +753,8 @@ function runSuite(title, tests) { | |
} | |
if (!serial) next(); | |
} | |
- })(); | |
+ }; | |
+ setup(next); | |
} | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment