Fix build output in CircleCi

This commit is contained in:
Lucas Duailibe committed 2018-06-14 11:15:04 -03:00
1 parent 4a16319470
commit 0780adbb0d
1 file changed
+1 -1
+1 -1
View File
@@ -20,7 +20,7 @@ const OK = chalk.reset.inverse.bold.green(" DONE ");
const FAIL = chalk.reset.inverse.bold.red(" FAIL ");
function fitTerminal(input) {
const columns = Math.min(process.stdout.columns, 80);
const columns = Math.min(process.stdout.columns || 40, 80);
const WIDTH = columns - stringWidth(OK) + 1;
if (input.length < WIDTH) {
input += Array(WIDTH - input.length).join(chalk.dim("."));