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:
parent
f416c3ed49
commit
94cefa1f93
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user