From 903c215867d37813fc3dbf70e5bdb04eef995dd1 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:02:57 +1000 Subject: [PATCH] Fix vNextCollectiuonService tests (#11739) --- .../services/default-vnext-collection.service.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/admin-console/src/common/collections/services/default-vnext-collection.service.spec.ts b/libs/admin-console/src/common/collections/services/default-vnext-collection.service.spec.ts index 4ca60cba77..54c4470d41 100644 --- a/libs/admin-console/src/common/collections/services/default-vnext-collection.service.spec.ts +++ b/libs/admin-console/src/common/collections/services/default-vnext-collection.service.spec.ts @@ -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), ); });