From cc6766e52fda8cab2b5fc8319f637e71d83d9613 Mon Sep 17 00:00:00 2001 From: Justin Baur <19896123+justindbaur@users.noreply.github.com> Date: Thu, 5 Sep 2024 20:20:40 -0400 Subject: [PATCH] Fix Test --- apps/desktop/src/auth/lock.component.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); }); });