Skip to content

armgit / mocha

Public Imported from GitHub
0

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

rebuild mocha.js

Christopher Hiller4944e31ff601
diff --git a/mocha.js b/mocha.js
index 6a05a385..fc38566c 100644
--- a/mocha.js
+++ b/mocha.js
@@ -3711,7 +3711,6 @@ inherits(Progress, Base);
var Base = require('./base');
var inherits = require('../utils').inherits;
var color = Base.color;
-var cursor = Base.cursor;
/**
* Expose `Spec`.
@@ -3763,20 +3762,17 @@ function Spec(runner) {
fmt = indent()
+ color('checkmark', ' ' + Base.symbols.ok)
+ color('pass', ' %s');
- cursor.CR();
console.log(fmt, test.title);
} else {
fmt = indent()
+ color('checkmark', ' ' + Base.symbols.ok)
+ color('pass', ' %s')
+ color(test.speed, ' (%dms)');
- cursor.CR();
console.log(fmt, test.title, test.duration);
}
});
runner.on('fail', function(test) {
- cursor.CR();
console.log(indent() + color('fail', ' %d) %s'), ++n, test.title);
});