From 1ec2f9261f3043d8176773d25cfaafd5921515a7 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Tue, 22 Oct 2024 11:18:30 +0200 Subject: [PATCH] Replace `IBootstrapCrossSigningOpts` by `BootstrapCrossSigningOpts` to use CryptoApi type instead of old crypto type. (#28263) --- test/unit-tests/stores/SetupEncryptionStore-test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/unit-tests/stores/SetupEncryptionStore-test.ts b/test/unit-tests/stores/SetupEncryptionStore-test.ts index cc79896855..388f1965d7 100644 --- a/test/unit-tests/stores/SetupEncryptionStore-test.ts +++ b/test/unit-tests/stores/SetupEncryptionStore-test.ts @@ -7,10 +7,9 @@ Please see LICENSE files in the repository root for full details. */ import { mocked, Mocked } from "jest-mock"; -import { IBootstrapCrossSigningOpts } from "matrix-js-sdk/src/crypto"; import { MatrixClient, Device } from "matrix-js-sdk/src/matrix"; import { SecretStorageKeyDescriptionAesV1, ServerSideSecretStorage } from "matrix-js-sdk/src/secret-storage"; -import { CryptoApi, DeviceVerificationStatus } from "matrix-js-sdk/src/crypto-api"; +import { BootstrapCrossSigningOpts, CryptoApi, DeviceVerificationStatus } from "matrix-js-sdk/src/crypto-api"; import { SdkContextClass } from "../../../src/contexts/SDKContext"; import { accessSecretStorage } from "../../../src/SecurityManager"; @@ -162,7 +161,7 @@ describe("SetupEncryptionStore", () => { it("resetConfirm should work with a cached account password", async () => { const makeRequest = jest.fn(); - mockCrypto.bootstrapCrossSigning.mockImplementation(async (opts: IBootstrapCrossSigningOpts) => { + mockCrypto.bootstrapCrossSigning.mockImplementation(async (opts: BootstrapCrossSigningOpts) => { await opts?.authUploadDeviceSigningKeys?.(makeRequest); }); mocked(accessSecretStorage).mockImplementation(async (func?: () => Promise) => {