Skip to content

Instantly share code, notes, and snippets.

@pquerna
Created August 17, 2010 22:50
Show Gist options
  • Save pquerna/7d89e159355d57a0663a to your computer and use it in GitHub Desktop.
Save pquerna/7d89e159355d57a0663a to your computer and use it in GitHub Desktop.
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