@@ -155,7 +155,7 @@ if (cluster.isMaster) {
|
155 | 155 | } else { |
156 | 156 | failures += results.length; |
157 | 157 | } |
158 | | -outFn(formatter(results) + '\r\n'); |
| 158 | +outFn(`${formatter(results)}\r\n`); |
159 | 159 | printProgress(); |
160 | 160 | } else { |
161 | 161 | successes += results; |
@@ -211,7 +211,7 @@ if (cluster.isMaster) {
|
211 | 211 | return; |
212 | 212 | |
213 | 213 | // Clear line |
214 | | -outFn('\r' + ' '.repeat(lastLineLen) + '\r'); |
| 214 | +outFn(`\r ${' '.repeat(lastLineLen)}\r`); |
215 | 215 | |
216 | 216 | // Calculate and format the data for displaying |
217 | 217 | const elapsed = process.hrtime(startTime)[0]; |
@@ -226,7 +226,7 @@ if (cluster.isMaster) {
|
226 | 226 | |
227 | 227 | // Truncate line like cpplint does in case it gets too long |
228 | 228 | if (line.length > 75) |
229 | | -line = line.slice(0, 75) + '...'; |
| 229 | +line = `${line.slice(0, 75)}...`; |
230 | 230 | |
231 | 231 | // Store the line length so we know how much to erase the next time around |
232 | 232 | lastLineLen = line.length; |
@@ -235,7 +235,7 @@ if (cluster.isMaster) {
|
235 | 235 | } |
236 | 236 | |
237 | 237 | function padString(str, len, chr) { |
238 | | -str = '' + str; |
| 238 | +str = `${str}`; |
239 | 239 | if (str.length >= len) |
240 | 240 | return str; |
241 | 241 | return chr.repeat(len - str.length) + str; |
|