This commit is contained in:
Justin Baur 2024-09-05 20:20:40 -04:00
parent 5229925110
commit cc6766e52f
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -457,11 +457,10 @@ describe("LockComponent", () => {
}); });
describe("canUseBiometric", () => { describe("canUseBiometric", () => {
it("should call getUserId() on stateService", async () => { it("should call biometric.enabled with current active user", async () => {
stateServiceMock.getUserId.mockResolvedValue("userId");
await component["canUseBiometric"](); await component["canUseBiometric"]();
expect(ipc.platform.biometric.enabled).toHaveBeenCalledWith("userId"); expect(ipc.platform.biometric.enabled).toHaveBeenCalledWith(mockUserId);
}); });
}); });