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) => {
10191019 return stats . size ; // in bytes
10201020 }
10211021 catch ( err ) {
1022- return "file not present"
1022+ return 0 ;
10231023 }
10241024}
Original file line number Diff line number Diff line change @@ -845,7 +845,6 @@ describe("runs", () => {
845845 chai . assert . fail ( "Promise error" ) ;
846846 } )
847847 . catch ( ( error ) => {
848- console . log ( error ) ;
849848 sinon . assert . calledOnce ( getConfigPathStub ) ;
850849 sinon . assert . calledOnce ( getConfigPathStub ) ;
851850 sinon . assert . calledOnce ( validateBstackJsonStub ) ;
Original file line number Diff line number Diff line change @@ -2672,7 +2672,7 @@ describe('utils', () => {
26722672 } ) ;
26732673
26742674 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 ) ;
26762676 } ) ;
26772677 } ) ;
26782678} ) ;
You can’t perform that action at this time.
0 commit comments