From 6f3cbd1c62b91bc5761db59f878ba7fb9b6811d1 Mon Sep 17 00:00:00 2001 From: gbubemismith Date: Wed, 9 Apr 2025 17:53:45 -0400 Subject: [PATCH] Fixed test --- .../services/default-cipher-encryption.service.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/common/src/vault/services/default-cipher-encryption.service.spec.ts b/libs/common/src/vault/services/default-cipher-encryption.service.spec.ts index 3eab75406da..513984a463b 100644 --- a/libs/common/src/vault/services/default-cipher-encryption.service.spec.ts +++ b/libs/common/src/vault/services/default-cipher-encryption.service.spec.ts @@ -135,7 +135,7 @@ describe("DefaultCipherEncryptionService", () => { mockSdkClient.vault().ciphers().decrypt.mockReturnValue(sdkCipherView); jest.spyOn(CipherView, "fromSdkCipherView").mockReturnValue(expectedCipherView); - const result = await cipherEncryptionService.decrypt(userId, cipherObj); + const result = await cipherEncryptionService.decrypt(cipherObj, userId); expect(result).toEqual(expectedCipherView); expect(cipherObj.toSdkCipher).toHaveBeenCalledTimes(1); @@ -200,7 +200,7 @@ describe("DefaultCipherEncryptionService", () => { .spyOn(Fido2CredentialView, "fromSdkFido2CredentialView") .mockReturnValueOnce(fido2CredentialView); - const result = await cipherEncryptionService.decrypt(userId, cipherObj); + const result = await cipherEncryptionService.decrypt(cipherObj, userId); expect(result).toBe(expectedCipherView); expect(result.login?.fido2Credentials).toEqual([fido2CredentialView]); @@ -219,7 +219,7 @@ describe("DefaultCipherEncryptionService", () => { throw new Error(errorMessage); }); - const result = await cipherEncryptionService.decrypt(userId, cipherObj); + const result = await cipherEncryptionService.decrypt(cipherObj, userId); expect(result).toBeInstanceOf(CipherView); expect(result.decryptionFailure).toBe(true);