File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -410,12 +410,12 @@ describe("zipUpload", () => {
410410 } ) ;
411411
412412 it ( "reject with error while uploading suit" , ( ) => {
413- let uploadSuitsErrorStub = sandbox . stub ( ) . returns ( Promise . reject ( "test error" ) ) ;
413+ let uploadSuitsErrorStub = sandbox . stub ( ) . returns ( Promise . reject ( { message : "test error" , stacktrace : "stacktrace error" } ) ) ;
414414 let purgeUploadBarStub = sandbox . stub ( ) . returns ( true ) ;
415415 zipUploader . __set__ ( {
416416 utils : utilsStub ,
417417 uploadSuits : uploadSuitsErrorStub ,
418- purgeUploadBar : purgeUploadBarStub
418+ purgeUploadBar : purgeUploadBarStub ,
419419 } ) ;
420420 let uploadCypressZiprewire = zipUploader . __get__ ( 'uploadCypressZip' ) ;
421421 let bsConfig = { }
@@ -427,7 +427,7 @@ describe("zipUpload", () => {
427427 chai . assert . fail ( "Promise error" ) ;
428428 } )
429429 . catch ( ( error ) => {
430- chai . assert . equal ( error . message , "test error" ) ;
430+ chai . assert . equal ( error , "test error" ) ;
431431 } ) ;
432432 } ) ;
433433 } ) ;
You can’t perform that action at this time.
0 commit comments