Skip to content

Commit aac9c07

Browse files
Aleksandr Murashkocjpillsbury
authored andcommitted
Update tests that related to request failure with statusCode check
1 parent d216895 commit aac9c07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/upchunk.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ describe('integration', () => {
102102
const upload = createUploadFixture();
103103

104104
upload.on('error', (err) => {
105+
expect(err.detail.response.statusCode).to.equal(500);
105106
done();
106107
});
107108

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

142143
upload.on('attemptFailure', (err) => {
143144
upload.pause();
145+
expect(err.detail.response.statusCode).to.equal(502);
144146
done();
145147
});
146148
});

0 commit comments

Comments
 (0)