Fix build output in CircleCi
parent
4a16319470
commit
0780adbb0d
|
@ -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("."));
|
||||
|
|
Loading…
Reference in New Issue