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); });