Fix Test
This commit is contained in:
parent
5229925110
commit
cc6766e52f
|
@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue