diff --git a/apps/desktop/src/auth/lock.component.spec.ts b/apps/desktop/src/auth/lock.component.spec.ts index d81f2a486f..4007cbf131 100644 --- a/apps/desktop/src/auth/lock.component.spec.ts +++ b/apps/desktop/src/auth/lock.component.spec.ts @@ -457,11 +457,10 @@ describe("LockComponent", () => { }); describe("canUseBiometric", () => { - it("should call getUserId() on stateService", async () => { - stateServiceMock.getUserId.mockResolvedValue("userId"); + it("should call biometric.enabled with current active user", async () => { await component["canUseBiometric"](); - expect(ipc.platform.biometric.enabled).toHaveBeenCalledWith("userId"); + expect(ipc.platform.biometric.enabled).toHaveBeenCalledWith(mockUserId); }); });