Skip to content

Commit

Permalink
[pm-11407] fix UI story for danger zone component (#11828)
Browse files Browse the repository at this point in the history
* Fix story for danger zone component

* fix linting

* Fix UI Story for Danger Zone component
  • Loading branch information
BTreston authored Nov 1, 2024
1 parent f416c3e commit 94cefa1
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 94cefa1

Please sign in to comment.