Skip to content

Commit

Permalink
Merge branch 'auth/pm-5237/hide-create-account-when-registration-disa…
Browse files Browse the repository at this point in the history
…bled' of https://github.com/bitwarden/clients into auth/pm-5237/hide-create-account-when-registration-disabled
  • Loading branch information
alec-livefront committed Nov 4, 2024
2 parents a08fd41 + 038a34d commit 20e94ff
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/web/src/app/auth/settings/account/danger-zone.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ import { importProvidersFrom } from "@angular/core";
import { Meta, StoryObj, applicationConfig, moduleMetadata } from "@storybook/angular";

import { JslibModule } from "@bitwarden/angular/jslib.module";
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
import { ButtonModule } from "@bitwarden/components";

import { PreloadedEnglishI18nModule } from "../../../core/tests";

import { DangerZoneComponent } from "./danger-zone.component";

class MockConfigService implements Partial<ConfigService> {}

export default {
title: "Web/Danger Zone",
component: DangerZoneComponent,
Expand All @@ -17,7 +20,14 @@ export default {
imports: [ButtonModule, JslibModule, CommonModule],
}),
applicationConfig({
providers: [importProvidersFrom(PreloadedEnglishI18nModule)],
providers: [
importProvidersFrom(PreloadedEnglishI18nModule),
{
provide: ConfigService,
useClass: MockConfigService,
multi: true,
},
],
}),
],
} as Meta;
Expand Down

0 comments on commit 20e94ff

Please sign in to comment.