fix(snjs): pass unencrypted file size to comply with file service interface (#1595)

This commit is contained in:
Karol Sójko
2022-09-19 14:36:53 +02:00
committed by GitHub
parent ee4a1acb9c
commit 038320b2fd

View File

@@ -53,7 +53,7 @@ describe('files', function () {
})
const uploadFile = async (fileService, buffer, name, ext, chunkSize) => {
const operation = await fileService.beginNewFileUpload()
const operation = await fileService.beginNewFileUpload(buffer.byteLength)
let chunkId = 1
for (let i = 0; i < buffer.length; i += chunkSize) {