Skip to content

Commit

Permalink
PM-8113 - TwoFactorAuthComponent tests - fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredSnider-Bitwarden committed Feb 13, 2025
1 parent d21f04e commit 84323f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<TestTwoFactorComponent>;
Expand Down Expand Up @@ -107,7 +107,6 @@ describe("TwoFactorComponent", () => {
mockDialogService = mock<DialogService>();
mockToastService = mock<ToastService>();
mockTwoFactorAuthCompService = mock<TwoFactorAuthComponentService>();
mockTwoFactorAuthCompService.handle2faSuccess = undefined;

mockEnvService = mock<EnvironmentService>();
mockLoginSuccessHandlerService = mock<LoginSuccessHandlerService>();
Expand Down Expand Up @@ -390,6 +389,7 @@ describe("TwoFactorComponent", () => {
);

const authResult = new AuthResult();
authResult.userId = userId;
mockLoginStrategyService.logInTwoFactor.mockResolvedValue(authResult);
});

Expand Down

0 comments on commit 84323f3

Please sign in to comment.