Fix double output of the summary line
This commit is contained in:
parent
73d96b090b
commit
5e4657d3f7
1 changed files with 7 additions and 2 deletions
|
@ -93,8 +93,13 @@ function char_printer(n_tests) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
finish: function() {
|
finish: function() {
|
||||||
const spaces = " ".repeat(max_per_line - (current % max_per_line));
|
if (current % max_per_line === 0) {
|
||||||
process.stdout.write(`${spaces} (${current}/${n_tests})${os.EOL}${os.EOL}`);
|
// Don't output if we are already at a matching line end
|
||||||
|
console.log("");
|
||||||
|
} else {
|
||||||
|
const spaces = " ".repeat(max_per_line - (current % max_per_line));
|
||||||
|
process.stdout.write(`${spaces} (${current}/${n_tests})${os.EOL}${os.EOL}`);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue