fix: type-cast sharingKey in crypto tests

This commit is contained in:
ramvignesh-b
2026-04-13 14:33:17 +05:30
parent 12763ab7ab
commit b64288c5dd
+3 -2
View File
@@ -123,7 +123,7 @@ describe("encryptImage / decryptImage", () => {
const result = await utils.encryptImage(file, masterKey);
const encryptedLetter = await utils.encryptLetter("test", masterKey);
const sharingKey = encryptedLetter.sharingKey;
const sharingKey = encryptedLetter.sharingKey as string;
const blobUrl = await utils.decryptImageWithSharingKey(
result.encryptedBlob,
@@ -145,7 +145,8 @@ describe("Sharing Key Decryption (TDD)", () => {
const letterContent = "hello, guest";
const encryptedLetter = await utils.encryptLetter(letterContent, masterKey);
const sharingKey = encryptedLetter.sharingKey;
const sharingKey = encryptedLetter.sharingKey as string;
const decryptedLetter = await utils.decryptLetterWithSharingKey(
encryptedLetter.encrypted_content,
sharingKey,