From c9597c212166fecd09e3af0441926697bc7bd139 Mon Sep 17 00:00:00 2001 From: Jeffrey Holland Date: Wed, 22 Oct 2025 16:35:19 +0200 Subject: [PATCH] Fix broken lock ui component tests --- .../src/lock/components/lock.component.spec.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libs/key-management-ui/src/lock/components/lock.component.spec.ts b/libs/key-management-ui/src/lock/components/lock.component.spec.ts index f123ca70848..e381f378ec6 100644 --- a/libs/key-management-ui/src/lock/components/lock.component.spec.ts +++ b/libs/key-management-ui/src/lock/components/lock.component.spec.ts @@ -473,7 +473,6 @@ describe("LockComponent", () => { component.clientType = clientType; mockLockComponentService.getPreviousUrl.mockReturnValue(null); - // Mock doContinue to include the navigation and required service calls jest.spyOn(component as any, "doContinue").mockImplementation(async () => { await mockBiometricStateService.resetUserPromptCancelled(); mockMessagingService.send("unlocked"); @@ -493,7 +492,6 @@ describe("LockComponent", () => { component.shouldClosePopout = true; mockPlatformUtilsService.getDevice.mockReturnValue(DeviceType.FirefoxExtension); - // Mock doContinue to include the popout close and required service calls jest.spyOn(component as any, "doContinue").mockImplementation(async () => { await mockBiometricStateService.resetUserPromptCancelled(); mockMessagingService.send("unlocked"); @@ -638,7 +636,6 @@ describe("LockComponent", () => { ])( "should unlock and force set password change = %o when master password on login = %o and evaluated password against policy = %o and policy set during user verification by master password", async (forceSetPassword, masterPasswordPolicyOptions, evaluatedMasterPassword) => { - // Mock doContinue to handle password policy evaluation and required service calls jest.spyOn(component as any, "doContinue").mockImplementation(async () => { await mockBiometricStateService.resetUserPromptCancelled(); mockMessagingService.send("unlocked"); @@ -779,7 +776,6 @@ describe("LockComponent", () => { component.clientType = clientType; mockLockComponentService.getPreviousUrl.mockReturnValue(null); - // Mock doContinue to include the navigation and required service calls jest.spyOn(component as any, "doContinue").mockImplementation(async () => { await mockBiometricStateService.resetUserPromptCancelled(); mockMessagingService.send("unlocked"); @@ -799,7 +795,6 @@ describe("LockComponent", () => { component.shouldClosePopout = true; mockPlatformUtilsService.getDevice.mockReturnValue(DeviceType.FirefoxExtension); - // Mock doContinue to include the popout close and required service calls jest.spyOn(component as any, "doContinue").mockImplementation(async () => { await mockBiometricStateService.resetUserPromptCancelled(); mockMessagingService.send("unlocked");