[pm-11407] fix UI story for danger zone component (#11828)
Some checks failed
Chromatic / Check PR run (push) Has been cancelled
Scan / Check PR run (push) Has been cancelled
Testing / Check for test secrets (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (macos-latest) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (ubuntu-latest) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (windows-latest) (push) Has been cancelled
Chromatic / Chromatic (push) Has been cancelled
Scan / SAST scan (push) Has been cancelled
Scan / Quality scan (push) Has been cancelled
Testing / Run tests (push) Has been cancelled

* 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;