Fix vNextCollectiuonService tests (#11739)

This commit is contained in:
Thomas Rittson 2024-10-28 13:02:57 +10:00 committed by GitHub
parent d0ed9aaa5d
commit 903c215867
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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_")),
);
@ -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),
);
});