Skip to content

Commit

Permalink
fix credential generator tests and angular imports
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyality committed Oct 16, 2024
1 parent 51d2983 commit d5a19ba
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 29 deletions.
11 changes: 10 additions & 1 deletion libs/tools/generator/components/src/generator.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { SafeInjectionToken } from "@bitwarden/angular/services/injection-tokens
import { ApiService } from "@bitwarden/common/abstractions/api.service";
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
import { EncryptService } from "@bitwarden/common/platform/abstractions/encrypt.service";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { StateProvider } from "@bitwarden/common/platform/state";
import {
Expand Down Expand Up @@ -69,7 +70,15 @@ const RANDOMIZER = new SafeInjectionToken<Randomizer>("Randomizer");
safeProvider({
provide: CredentialGeneratorService,
useClass: CredentialGeneratorService,
deps: [RANDOMIZER, StateProvider, PolicyService, ApiService, I18nService],
deps: [
RANDOMIZER,
StateProvider,
PolicyService,
ApiService,
I18nService,
EncryptService,
CryptoService,
],
}),
],
declarations: [
Expand Down
Loading

0 comments on commit d5a19ba

Please sign in to comment.