From 122d1c464ec90f19b8b03a7aee31e4f15bd04e6b Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Fri, 12 Dec 2025 11:49:56 +0100 Subject: [PATCH] Tests --- .../migrations/minimum-kdf-migration.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/common/src/key-management/encrypted-migrator/migrations/minimum-kdf-migration.spec.ts b/libs/common/src/key-management/encrypted-migrator/migrations/minimum-kdf-migration.spec.ts index dfe700cd02c..6352eeecfaf 100644 --- a/libs/common/src/key-management/encrypted-migrator/migrations/minimum-kdf-migration.spec.ts +++ b/libs/common/src/key-management/encrypted-migrator/migrations/minimum-kdf-migration.spec.ts @@ -71,7 +71,7 @@ describe("MinimumKdfMigration", () => { it("should return 'noMigrationNeeded' when PBKDF2 iterations equal minimum", async () => { const mockKdfConfig = { kdfType: KdfType.PBKDF2_SHA256, - iterations: PBKDF2KdfConfig.ITERATIONS.min, + iterations: 600000, }; mockKdfConfigService.getKdfConfig.mockResolvedValue(mockKdfConfig as any); mockConfigService.getFeatureFlag.mockResolvedValue(true); @@ -140,7 +140,7 @@ describe("MinimumKdfMigration", () => { // Verify the PBKDF2KdfConfig has the correct iteration count const kdfConfigArg = (mockChangeKdfService.updateUserKdfParams as jest.Mock).mock.calls[0][1]; - expect(kdfConfigArg.iterations).toBe(PBKDF2KdfConfig.ITERATIONS.defaultValue); + expect(kdfConfigArg.iterations).toBe(600000); }); it("should throw error when userId is null", async () => {