Skip to content

armgit / mocha

Public Imported from GitHub
0

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

actually fixed Base.window.width... give precedence to 0.6.x

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