Fix build output in CircleCi

master
Lucas Duailibe 2018-06-14 11:15:04 -03:00
parent 4a16319470
commit 0780adbb0d
1 changed files with 1 additions and 1 deletions

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("."));