Skip to content

Commit a1a6c22

Browse files
committed
test: add test for multipartChunkSize
1 parent 4d39ed4 commit a1a6c22

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/upload-client/test/uploadFile/uploadMultipart.test.ts

+9
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ describe('uploadMultipart', () => {
1919
expect(file.cdnUrl).toBeTruthy()
2020
})
2121

22+
it('should accept multipartChunkSize option', async () => {
23+
const file = await uploadMultipart(fileToUpload, {
24+
...settings,
25+
multipartChunkSize: 1 * 1024 * 1024
26+
})
27+
28+
expect(file.cdnUrl).toBeTruthy()
29+
})
30+
2231
it('should accept store setting', async () => {
2332
const settings = getSettingsForTesting({
2433
publicKey: factory.publicKey('image'),

0 commit comments

Comments
 (0)