From 84323f320379d489ba9b484653578ce7e6c10266 Mon Sep 17 00:00:00 2001 From: Jared Snider Date: Thu, 13 Feb 2025 09:43:59 -0500 Subject: [PATCH] PM-8113 - TwoFactorAuthComponent tests - fix tests --- .../angular/two-factor-auth/two-factor-auth.component.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.spec.ts b/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.spec.ts index bbcb497ee24..79856157aaa 100644 --- a/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.spec.ts +++ b/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.spec.ts @@ -45,7 +45,7 @@ import { TwoFactorAuthComponent } from "./two-factor-auth.component"; @Component({}) class TestTwoFactorComponent extends TwoFactorAuthComponent {} -describe("TwoFactorComponent", () => { +describe("TwoFactorAuthComponent", () => { let component: TestTwoFactorComponent; let fixture: ComponentFixture; @@ -107,7 +107,6 @@ describe("TwoFactorComponent", () => { mockDialogService = mock(); mockToastService = mock(); mockTwoFactorAuthCompService = mock(); - mockTwoFactorAuthCompService.handle2faSuccess = undefined; mockEnvService = mock(); mockLoginSuccessHandlerService = mock(); @@ -390,6 +389,7 @@ describe("TwoFactorComponent", () => { ); const authResult = new AuthResult(); + authResult.userId = userId; mockLoginStrategyService.logInTwoFactor.mockResolvedValue(authResult); });