mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
Fix failing tests (#3374)
* Fix trial-initation test Co-authored-by: Michał Chęciński <michal.checinski@outlook.com>
This commit is contained in:
@@ -18,6 +18,8 @@ import { StateService as BaseStateService } from "@bitwarden/common/abstractions
|
||||
import { PlanType } from "@bitwarden/common/enums/planType";
|
||||
import { MasterPasswordPolicyOptions } from "@bitwarden/common/models/domain/masterPasswordPolicyOptions";
|
||||
|
||||
import { RouterService } from "../../core";
|
||||
|
||||
import { TrialInitiationComponent } from "./trial-initiation.component";
|
||||
import { VerticalStepperComponent } from "./vertical-stepper/vertical-stepper.component";
|
||||
|
||||
@@ -84,6 +86,10 @@ describe("TrialInitiationComponent", () => {
|
||||
provide: VerticalStepperComponent,
|
||||
useClass: VerticalStepperStubComponent,
|
||||
},
|
||||
{
|
||||
provide: RouterService,
|
||||
useClass: Substitute.for<RouterService>(),
|
||||
},
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA], // Allows child components to be ignored (such as register component)
|
||||
}).compileComponents();
|
||||
|
||||
Reference in New Issue
Block a user