Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

utilize new "error" event

Tj Holowaychuk556c8ae7e7d7
diff --git a/lib/runner.js b/lib/runner.js
index 35df5e27..9c83f7ab 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -249,7 +249,9 @@ Runner.prototype.runTest = function(fn){
, self = this;
try {
- test.on('error', function(err){ self.fail(test, err); });
+ test.on('error', function(err){
+ self.fail(test, err);
+ });
test.run(fn);
} catch (err) {
fn(err);