mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
Auth/PM-10601 - Tech Debt Cleanup - Refactor Lock Component and User Verification to use PinService (#10408)
* PM-10601 - PinSvc new unlock check first draft * PM-10601 - PinSvc - add new method for determining if pin decryption is available. * PM-10601 - Add more docs on PinSvc * PM-10601 - Update Lock Comp & User Verification service + tests to use new isPinDecryptionAvailable method
This commit is contained in:
@@ -410,6 +410,12 @@ describe("UserVerificationService", () => {
|
||||
|
||||
function setPinAvailability(type: PinLockType) {
|
||||
pinService.getPinLockType.mockResolvedValue(type);
|
||||
|
||||
if (type === "EPHEMERAL" || type === "PERSISTENT") {
|
||||
pinService.isPinDecryptionAvailable.mockResolvedValue(true);
|
||||
} else if (type === "DISABLED") {
|
||||
pinService.isPinDecryptionAvailable.mockResolvedValue(false);
|
||||
}
|
||||
}
|
||||
|
||||
function disableBiometricsAvailability() {
|
||||
|
||||
Reference in New Issue
Block a user