From 0d445b8bdd54a5b8b3c1be160b62ba47567027cd Mon Sep 17 00:00:00 2001 From: Maciej Zieniuk Date: Wed, 21 Jan 2026 23:23:16 +0000 Subject: [PATCH] types fix --- .../key-connector/services/key-connector.service.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/common/src/key-management/key-connector/services/key-connector.service.spec.ts b/libs/common/src/key-management/key-connector/services/key-connector.service.spec.ts index 7a159762c22..7b6bbdb9a91 100644 --- a/libs/common/src/key-management/key-connector/services/key-connector.service.spec.ts +++ b/libs/common/src/key-management/key-connector/services/key-connector.service.spec.ts @@ -3,7 +3,10 @@ import { firstValueFrom, of, timeout, TimeoutError } from "rxjs"; // This import has been flagged as unallowed for this class. It may be involved in a circular dependency loop. // eslint-disable-next-line no-restricted-imports -import { InternalUserDecryptionOptionsServiceAbstraction } from "@bitwarden/auth/common"; +import { + InternalUserDecryptionOptionsServiceAbstraction, + UserDecryptionOptions, +} from "@bitwarden/auth/common"; import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction"; import { OrganizationUserType } from "@bitwarden/common/admin-console/enums"; import { SetKeyConnectorKeyRequest } from "@bitwarden/common/key-management/key-connector/models/set-key-connector-key.request"; @@ -273,7 +276,7 @@ describe("KeyConnectorService", () => { const mockUserDecryptionOptions = { hasMasterPassword: true, keyConnectorOption: undefined, - }; + } as UserDecryptionOptions; jest.spyOn(apiService, "postUserKeyToKeyConnector").mockResolvedValue(); userDecryptionOptionsService.userDecryptionOptionsById$.mockReturnValue(