Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fixed Base.window.width for 0.6.x

Tj Holowaychukd4eb0a5e15ec
diff --git a/lib/reporters/base.js b/lib/reporters/base.js
index 52953523..9514175b 100644
--- a/lib/reporters/base.js
+++ b/lib/reporters/base.js
@@ -64,7 +64,9 @@ var color = exports.color = function(type, str) {
*/
exports.window = {
- width: isatty ? tty.getWindowSize(1)[1] : 75
+ width: isatty
+ ? process.stdout.getWindowSize(1)[0]
+ : 75
};
/**