Skip to content

Commit

Permalink
import account service in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-livefront committed Nov 1, 2024
1 parent 9fa407b commit 1cad02f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/vault/src/cipher-form/cipher-form.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { CollectionView } from "@bitwarden/admin-console/common";
import { AuditService } from "@bitwarden/common/abstractions/audit.service";
import { EventCollectionService } from "@bitwarden/common/abstractions/event/event-collection.service";
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";

Check warning on line 16 in libs/vault/src/cipher-form/cipher-form.stories.ts

View check run for this annotation

Codecov / codecov/patch

libs/vault/src/cipher-form/cipher-form.stories.ts#L16

Added line #L16 was not covered by tests
import { AutofillSettingsServiceAbstraction } from "@bitwarden/common/autofill/services/autofill-settings.service";
import { DomainSettingsService } from "@bitwarden/common/autofill/services/domain-settings.service";
import { ClientType } from "@bitwarden/common/enums";
Expand Down Expand Up @@ -183,6 +184,12 @@ export default {
getClientType: () => ClientType.Browser,
},
},
{
provide: AccountService,
useValue: {
activeAccount$: new BehaviorSubject({ email: "[email protected]" }),
},
},
],
}),
componentWrapperDecorator(
Expand Down

0 comments on commit 1cad02f

Please sign in to comment.