Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Actually fixed exports.window.width

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