mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-07 19:07:45 +01:00
Update variable name.
This commit is contained in:
parent
2f29903136
commit
ad37d8de92
@ -36,7 +36,6 @@ import { OrganizationInvite } from "../organization-invite/organization-invite";
|
||||
|
||||
import { RegisterFormComponent } from "./register-form.component";
|
||||
|
||||
|
||||
describe("RegisterFormComponent", () => {
|
||||
let component: RegisterFormComponent;
|
||||
let fixture: ComponentFixture<RegisterFormComponent>;
|
||||
@ -248,13 +247,13 @@ describe("RegisterFormComponent", () => {
|
||||
/**
|
||||
* Sets up the password policy test.
|
||||
*
|
||||
* @param policyMet - Whether the password policy is met.
|
||||
* @param isPolicyMet - Whether the password policy is met.
|
||||
* @param passwordScore - The score of the password.
|
||||
* @param password - The password to set.
|
||||
* @returns The spy on the submit method.
|
||||
*/
|
||||
function setupPasswordPolicyTest(policyMet: boolean, passwordScore: number, password: string) {
|
||||
policyServiceMock.evaluateMasterPassword.mockReturnValue(policyMet);
|
||||
function setupPasswordPolicyTest(isPolicyMet: boolean, passwordScore: number, password: string) {
|
||||
policyServiceMock.evaluateMasterPassword.mockReturnValue(isPolicyMet);
|
||||
component.enforcedPolicyOptions = { minLength: 10 } as MasterPasswordPolicyOptions;
|
||||
component.passwordStrengthResult = { score: passwordScore };
|
||||
component.formGroup.patchValue({ masterPassword: password });
|
||||
|
Loading…
Reference in New Issue
Block a user