mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 19:53:43 +00:00
Fix failing crypto tests (#5948)
* Change everything to Uint8Array related to https://github.com/jestjs/jest/issues/14379 * Work on failing type tests * Revert changes to custom matcher setup * Remove last BufferArrays from tests * Fix custom matcher type errors in vscode * Remove errant `.buffer` calls on Uint8Arrays * Encryption Pair should serialize Array Buffer and Uint8Array * Fix EncArrayBuffer encryption --------- Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
This commit is contained in:
@@ -277,7 +277,7 @@ function createCipherView(i: number, deleted = false): CipherView {
|
||||
view.attachments = [attachment];
|
||||
} else if (i % 5 === 0) {
|
||||
const attachment = new AttachmentView();
|
||||
attachment.key = new SymmetricCryptoKey(new ArrayBuffer(32));
|
||||
attachment.key = new SymmetricCryptoKey(new Uint8Array(32));
|
||||
view.attachments = [attachment];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user