File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
test/unit/bin/helpers/sync Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ let getTableConfig = () => {
35
35
border : getBorderConfig ( ) ,
36
36
columns : {
37
37
1 : { alignment : 'center' , width : 1 } ,
38
- 2 : { alignment : 'left' , width : Math . floor ( terminalWidth * 0.8 ) }
38
+ 2 : { alignment : 'left' , width : Math . floor ( terminalWidth * 0.8 ) }
39
39
} ,
40
40
columnDefault : {
41
41
width : Math . floor ( terminalWidth * 0.2 ) ,
Original file line number Diff line number Diff line change @@ -92,11 +92,11 @@ describe("syncSpecsLogs", () => {
92
92
syncSpecsLogs . __set__ ( 'getBorderConfig' , getBorderConfigStub ) ;
93
93
94
94
let options = getTableConfig ( ) ;
95
- expect ( options . columnDefault . width ) . to . equal ( Math . floor ( ( ( process . stdout . columns ) * 0.9 ) * 0.2 ) ) ;
95
+ expect ( options . columnDefault . width ) . to . equal ( Math . floor ( ( ( process . stdout . columns ) * 0.9 ) * 0.2 ) ) ;
96
96
expect ( options . columns [ 1 ] . alignment ) . to . equal ( 'center' ) ;
97
97
expect ( options . columns [ 2 ] . alignment ) . to . equal ( 'left' ) ;
98
98
expect ( options . columns [ 1 ] . width ) . to . equal ( 1 ) ;
99
- expect ( options . columns [ 2 ] . width ) . to . equal ( Math . floor ( ( ( process . stdout . columns ) * 0.9 ) * 0.8 ) ) ;
99
+ expect ( options . columns [ 2 ] . width ) . to . equal ( Math . floor ( ( ( process . stdout . columns ) * 0.9 ) * 0.8 ) ) ;
100
100
expect ( options . columnCount ) . to . equal ( 3 ) ;
101
101
expect ( getBorderConfigStub . calledOnce ) . to . be . true ;
102
102
} ) ;
You can’t perform that action at this time.
0 commit comments