Skip to content

Commit

Permalink
Update tests that related to request failure with statusCode check
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Murashko authored and cjpillsbury committed Jan 25, 2024
1 parent d216895 commit aac9c07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/upchunk.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ describe('integration', () => {
const upload = createUploadFixture();

upload.on('error', (err) => {
expect(err.detail.response.statusCode).to.equal(500);
done();
});

Expand Down Expand Up @@ -141,6 +142,7 @@ describe('integration', () => {

upload.on('attemptFailure', (err) => {
upload.pause();
expect(err.detail.response.statusCode).to.equal(502);
done();
});
});
Expand Down

0 comments on commit aac9c07

Please sign in to comment.