1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 14:04:03 +00:00
This commit is contained in:
Bernd Schoolmann
2026-02-09 13:31:24 +01:00
parent 31f65cd840
commit d8d8a61699

View File

@@ -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();
});