diff --git a/libs/common/src/platform/models/domain/enc-string.spec.ts b/libs/common/src/platform/models/domain/enc-string.spec.ts index a1f1035dcc..2aa4f2161f 100644 --- a/libs/common/src/platform/models/domain/enc-string.spec.ts +++ b/libs/common/src/platform/models/domain/enc-string.spec.ts @@ -4,7 +4,11 @@ import { mock, MockProxy } from "jest-mock-extended"; import { EncryptionType } from "../../../enums"; import { EncryptService } from "../../../platform/abstractions/encrypt.service"; -import { OrgKey, SymmetricCryptoKey } from "../../../platform/models/domain/symmetric-crypto-key"; +import { + OrgKey, + SymmetricCryptoKey, + UserKey, +} from "../../../platform/models/domain/symmetric-crypto-key"; import { CryptoService } from "../../abstractions/crypto.service"; import { ContainerService } from "../../services/container.service"; @@ -241,7 +245,7 @@ describe("EncString", () => { }); it("gets the user's decryption key if required", async () => { - const userKey = mock(); + const userKey = mock(); cryptoService.getUserKeyWithLegacySupport.mockResolvedValue(userKey); diff --git a/libs/common/src/vault/models/domain/attachment.spec.ts b/libs/common/src/vault/models/domain/attachment.spec.ts index bad57487a6..0af7df73e1 100644 --- a/libs/common/src/vault/models/domain/attachment.spec.ts +++ b/libs/common/src/vault/models/domain/attachment.spec.ts @@ -4,7 +4,11 @@ import { makeStaticByteArray, mockEnc, mockFromJson } from "../../../../spec"; import { CryptoService } from "../../../platform/abstractions/crypto.service"; import { EncryptService } from "../../../platform/abstractions/encrypt.service"; import { EncryptedString, EncString } from "../../../platform/models/domain/enc-string"; -import { OrgKey, SymmetricCryptoKey } from "../../../platform/models/domain/symmetric-crypto-key"; +import { + OrgKey, + SymmetricCryptoKey, + UserKey, +} from "../../../platform/models/domain/symmetric-crypto-key"; import { ContainerService } from "../../../platform/services/container.service"; import { AttachmentData } from "../../models/data/attachment.data"; import { Attachment } from "../../models/domain/attachment"; @@ -120,7 +124,7 @@ describe("Attachment", () => { }); it("gets the user's decryption key if required", async () => { - const userKey = mock(); + const userKey = mock(); cryptoService.getUserKeyWithLegacySupport.mockResolvedValue(userKey); await attachment.decrypt(null, null);