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", () => {
410
410
} ) ;
411
411
412
412
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" } ) ) ;
414
414
let purgeUploadBarStub = sandbox . stub ( ) . returns ( true ) ;
415
415
zipUploader . __set__ ( {
416
416
utils : utilsStub ,
417
417
uploadSuits : uploadSuitsErrorStub ,
418
- purgeUploadBar : purgeUploadBarStub
418
+ purgeUploadBar : purgeUploadBarStub ,
419
419
} ) ;
420
420
let uploadCypressZiprewire = zipUploader . __get__ ( 'uploadCypressZip' ) ;
421
421
let bsConfig = { }
@@ -427,7 +427,7 @@ describe("zipUpload", () => {
427
427
chai . assert . fail ( "Promise error" ) ;
428
428
} )
429
429
. catch ( ( error ) => {
430
- chai . assert . equal ( error . message , "test error" ) ;
430
+ chai . assert . equal ( error , "test error" ) ;
431
431
} ) ;
432
432
} ) ;
433
433
} ) ;
You can’t perform that action at this time.
0 commit comments