Skip to content

Commit

Permalink
Fix vNextCollectiuonService tests (#11739)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliykat authored Oct 28, 2024
1 parent d0ed9aa commit 903c215
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe("DefaultvNextCollectionService", () => {

// Set up mock decryption
encryptService.decryptToUtf8
.calledWith(expect.any(EncString), expect.any(SymmetricCryptoKey))
.calledWith(expect.any(EncString), expect.any(SymmetricCryptoKey), expect.any(String))
.mockImplementation((encString, key) =>
Promise.resolve(encString.data.replace("ENC_", "DEC_")),
);
Expand Down Expand Up @@ -106,10 +106,12 @@ describe("DefaultvNextCollectionService", () => {
expect(encryptService.decryptToUtf8).toHaveBeenCalledWith(
expect.objectContaining(new EncString(collection1.name)),
orgKey1,
expect.any(String),
);
expect(encryptService.decryptToUtf8).toHaveBeenCalledWith(
expect.objectContaining(new EncString(collection2.name)),
orgKey2,
expect.any(String),
);
});

Expand Down

0 comments on commit 903c215

Please sign in to comment.