Update conversion of Uint8Array to Readable for in-memory attachments
This commit is contained in:
parent
2e62d5e044
commit
2b7936cd86
2 changed files with 7 additions and 1 deletions
|
@ -675,6 +675,12 @@ describe('Crypto', () => {
|
|||
data: FILE_CONTENTS,
|
||||
plaintextHash: FILE_HASH,
|
||||
});
|
||||
|
||||
// also works if data is raw Uint8Array rather than a buffer
|
||||
await testV2RoundTripData({
|
||||
data: new Uint8Array(FILE_CONTENTS),
|
||||
plaintextHash: FILE_HASH,
|
||||
});
|
||||
});
|
||||
|
||||
it('v2 roundtrips large file from disk', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue