Skip to content

Commit 34e3806

Browse files
SouravSourav
authored andcommitted
update testcases
1 parent 540b955 commit 34e3806

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/bin/helpers/zipUpload.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)