File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,9 @@ let specSummary = {
13
13
"specs" : [ ] ,
14
14
"duration" : null
15
15
}
16
- let noWrap = ( process . env . SYNC_NO_WRAP && ( process . env . SYNC_NO_WRAP === 'true' ) ) ;
16
+ let noWrap = false ;
17
17
let terminalWidth = ( process . stdout . columns ) * 0.9 ;
18
18
let lineSeparator = "\n" + "-" . repeat ( terminalWidth ) ;
19
- // Do not show the separator based on terminal width if no-wrap provided.
20
- if ( noWrap ) {
21
- lineSeparator = "\n--------------------------------------------------------------------------------" ;
22
- }
23
19
24
20
let getOptions = ( auth , build_id ) => {
25
21
return {
@@ -84,7 +80,16 @@ let getBorderConfig = () => {
84
80
}
85
81
}
86
82
83
+ let setNoWrapParams = ( ) => {
84
+ noWrap = ( process . env . SYNC_NO_WRAP && ( process . env . SYNC_NO_WRAP === 'true' ) ) ;
85
+ // Do not show the separator based on terminal width if no-wrap provided.
86
+ if ( noWrap ) {
87
+ lineSeparator = "\n--------------------------------------------------------------------------------" ;
88
+ }
89
+ } ;
90
+
87
91
let printSpecsStatus = ( bsConfig , buildDetails ) => {
92
+ setNoWrapParams ( ) ;
88
93
return new Promise ( ( resolve , reject ) => {
89
94
options = getOptions ( bsConfig . auth , buildDetails . build_id )
90
95
tableConfig = getTableConfig ( ) ;
Original file line number Diff line number Diff line change @@ -572,7 +572,7 @@ exports.setHeaded = (bsConfig, args) => {
572
572
} ;
573
573
574
574
exports . setNoWrap = ( _bsConfig , args ) => {
575
- if ( args . noWrap === true ) {
575
+ if ( args . noWrap === true || this . searchForOption ( '--no-wrap' ) ) {
576
576
process . env . SYNC_NO_WRAP = true ;
577
577
} else {
578
578
process . env . SYNC_NO_WRAP = false ;
You can’t perform that action at this time.
0 commit comments