Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fix styling of previous merge

TJ Holowaychuke7157e4f907c
diff --git a/lib/runner.js b/lib/runner.js
index 377ca41b..148950e0 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -185,7 +185,7 @@ Runner.prototype.fail = function(test, err){
if ('string' == typeof err) {
err = new Error('the string "' + err + '" was thrown, throw an Error :)');
}
-
+
this.emit('fail', test, err);
};
@@ -483,10 +483,11 @@ Runner.prototype.uncaught = function(err){
Runner.prototype.run = function(fn){
var self = this
- , fn = fn || function(){}
- , uncaught = function(err){
- self.uncaught(err);
- };
+ , fn = fn || function(){};
+
+ function uncaught(err){
+ self.uncaught(err);
+ }
debug('start');