Skip to content

Commit 2434499

Browse files
committed
made the hyphen pattern also dynamic
1 parent f76d3cd commit 2434499

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/helpers/sync/syncSpecsLogs.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let specSummary = {
1313
"specs": [],
1414
"duration": null
1515
}
16-
16+
let terminalWidth = (process.stdout.columns)*0.9;
1717

1818
let getOptions = (auth, build_id) => {
1919
return {
@@ -31,7 +31,6 @@ let getOptions = (auth, build_id) => {
3131
}
3232

3333
let getTableConfig = () => {
34-
let terminalWidth = (process.stdout.columns)*0.9;
3534
return {
3635
border: getBorderConfig(),
3736
columns: {
@@ -82,7 +81,7 @@ let printSpecsStatus = (bsConfig, buildDetails) => {
8281
whileProcess(callback)
8382
},
8483
function(err, result) { // when loop ends
85-
logger.info("\n--------------------------------------------------------------------------------")
84+
logger.info(`\n${"-".repeat(terminalWidth)}`)
8685
specSummary.duration = endTime - startTime
8786
resolve(specSummary)
8887
}
@@ -140,7 +139,7 @@ let showSpecsStatus = (data) => {
140139

141140
let printInitialLog = () => {
142141
logger.info(`\n${Constants.syncCLI.LOGS.INIT_LOG}`)
143-
logger.info("--------------------------------------------------------------------------------")
142+
logger.info(`\n${"-".repeat(terminalWidth)}`)
144143
n = Constants.syncCLI.INITIAL_DELAY_MULTIPLIER
145144
}
146145

0 commit comments

Comments
 (0)