File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1019,6 +1019,6 @@ exports.fetchZipSize = (fileName) => {
1019
1019
return stats . size ; // in bytes
1020
1020
}
1021
1021
catch ( err ) {
1022
- return "file not present"
1022
+ return 0 ;
1023
1023
}
1024
1024
}
Original file line number Diff line number Diff line change @@ -845,7 +845,6 @@ describe("runs", () => {
845
845
chai . assert . fail ( "Promise error" ) ;
846
846
} )
847
847
. catch ( ( error ) => {
848
- console . log ( error ) ;
849
848
sinon . assert . calledOnce ( getConfigPathStub ) ;
850
849
sinon . assert . calledOnce ( getConfigPathStub ) ;
851
850
sinon . assert . calledOnce ( validateBstackJsonStub ) ;
Original file line number Diff line number Diff line change @@ -2672,7 +2672,7 @@ describe('utils', () => {
2672
2672
} ) ;
2673
2673
2674
2674
it ( 'handle file not present' , ( ) => {
2675
- expect ( utils . fetchZipSize ( 'unknown.tar.gz' ) ) . to . be . eql ( 'file not present' ) ;
2675
+ expect ( utils . fetchZipSize ( 'unknown.tar.gz' ) ) . to . be . eql ( 0 ) ;
2676
2676
} ) ;
2677
2677
} ) ;
2678
2678
} ) ;
You can’t perform that action at this time.
0 commit comments