From d8d8a61699a81c9697138e67fd7963686f1705e3 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Mon, 9 Feb 2026 13:31:24 +0100 Subject: [PATCH] Fix test --- apps/cli/src/admin-console/commands/confirm.command.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/cli/src/admin-console/commands/confirm.command.spec.ts b/apps/cli/src/admin-console/commands/confirm.command.spec.ts index 69eb1cf6f39..f7c3d2ebfe9 100644 --- a/apps/cli/src/admin-console/commands/confirm.command.spec.ts +++ b/apps/cli/src/admin-console/commands/confirm.command.spec.ts @@ -13,6 +13,7 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic import { UserId } from "@bitwarden/common/types/guid"; import { OrgKey } from "@bitwarden/common/types/key"; import { KeyService } from "@bitwarden/key-management"; +import { UnsignedSharedKey } from "@bitwarden/sdk-internal"; import { Response } from "../../models/response"; @@ -55,7 +56,7 @@ describe("ConfirmCommand", () => { keyService.orgKeys$ = jest.fn().mockReturnValue(of({ [organizationId]: mockOrgKey })); i18nService.t.mockReturnValue("My Items"); encryptService.encryptString.mockResolvedValue({ encryptedString: "encrypted" } as any); - encryptService.encapsulateKeyUnsigned.mockResolvedValue({ encryptedString: "key" } as any); + encryptService.encapsulateKeyUnsigned.mockResolvedValue("key" as UnsignedSharedKey); apiService.getUserPublicKey.mockResolvedValue({ publicKey: mockPublicKey } as any); organizationUserApiService.postOrganizationUserConfirm.mockResolvedValue(); });