1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

Update variable name.

This commit is contained in:
Alec Rippberger
2024-10-15 21:42:29 -05:00
parent 2f29903136
commit ad37d8de92

View File

@@ -36,7 +36,6 @@ import { OrganizationInvite } from "../organization-invite/organization-invite";
import { RegisterFormComponent } from "./register-form.component"; import { RegisterFormComponent } from "./register-form.component";
describe("RegisterFormComponent", () => { describe("RegisterFormComponent", () => {
let component: RegisterFormComponent; let component: RegisterFormComponent;
let fixture: ComponentFixture<RegisterFormComponent>; let fixture: ComponentFixture<RegisterFormComponent>;
@@ -248,13 +247,13 @@ describe("RegisterFormComponent", () => {
/** /**
* Sets up the password policy test. * 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 passwordScore - The score of the password.
* @param password - The password to set. * @param password - The password to set.
* @returns The spy on the submit method. * @returns The spy on the submit method.
*/ */
function setupPasswordPolicyTest(policyMet: boolean, passwordScore: number, password: string) { function setupPasswordPolicyTest(isPolicyMet: boolean, passwordScore: number, password: string) {
policyServiceMock.evaluateMasterPassword.mockReturnValue(policyMet); policyServiceMock.evaluateMasterPassword.mockReturnValue(isPolicyMet);
component.enforcedPolicyOptions = { minLength: 10 } as MasterPasswordPolicyOptions; component.enforcedPolicyOptions = { minLength: 10 } as MasterPasswordPolicyOptions;
component.passwordStrengthResult = { score: passwordScore }; component.passwordStrengthResult = { score: passwordScore };
component.formGroup.patchValue({ masterPassword: password }); component.formGroup.patchValue({ masterPassword: password });