1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

add missing provider in premium-badge story (#12766)

This commit is contained in:
Jordan Aasen
2025-01-09 09:27:52 -08:00
committed by GitHub
parent c451f500f9
commit 8fe1802963

View File

@@ -2,6 +2,7 @@ import { Meta, moduleMetadata, StoryObj } from "@storybook/angular";
import { of } from "rxjs"; import { of } from "rxjs";
import { JslibModule } from "@bitwarden/angular/jslib.module"; import { JslibModule } from "@bitwarden/angular/jslib.module";
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
import { BillingAccountProfileStateService } from "@bitwarden/common/billing/abstractions/account/billing-account-profile-state.service"; import { BillingAccountProfileStateService } from "@bitwarden/common/billing/abstractions/account/billing-account-profile-state.service";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service"; import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { MessageSender } from "@bitwarden/common/platform/messaging"; import { MessageSender } from "@bitwarden/common/platform/messaging";
@@ -22,6 +23,14 @@ export default {
moduleMetadata({ moduleMetadata({
imports: [JslibModule, BadgeModule], imports: [JslibModule, BadgeModule],
providers: [ providers: [
{
provide: AccountService,
useValue: {
activeAccount$: of({
id: "123",
}),
},
},
{ {
provide: I18nService, provide: I18nService,
useFactory: () => { useFactory: () => {
@@ -39,7 +48,7 @@ export default {
{ {
provide: BillingAccountProfileStateService, provide: BillingAccountProfileStateService,
useValue: { useValue: {
hasPremiumFromAnySource$: of(false), hasPremiumFromAnySource$: () => of(false),
}, },
}, },
], ],