1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01:00

[pm-11407] fix UI story for danger zone component (#11828)

* Fix story for danger zone component

* fix linting

* Fix UI Story for Danger Zone component
This commit is contained in:
Brandon Treston 2024-11-01 17:02:18 -04:00 committed by GitHub
parent f416c3ed49
commit 94cefa1f93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
@ -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;