From 0d3efa5fa773c61b08499a7c2d1977d0ae76bc75 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Mon, 29 Jun 2026 14:02:37 +0100 Subject: [PATCH] Correct incorect hard-coded string in test mock (#34022) --- apps/web/test/unit-tests/submit-rageshake-test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/test/unit-tests/submit-rageshake-test.ts b/apps/web/test/unit-tests/submit-rageshake-test.ts index 040c3edc0d..8e47ac7c81 100644 --- a/apps/web/test/unit-tests/submit-rageshake-test.ts +++ b/apps/web/test/unit-tests/submit-rageshake-test.ts @@ -15,6 +15,7 @@ import { TypedEventEmitter, MatrixHttpApi, } from "matrix-js-sdk/src/matrix"; +import { CrossSigningKey } from "matrix-js-sdk/src/crypto-api"; import fetchMock from "@fetch-mock/jest"; import { getMockClientWithEventEmitter, mockClientMethodsCrypto, mockPlatformPeg } from "../test-utils"; @@ -193,7 +194,7 @@ describe("Rageshakes", () => { const crossSigningPubKey = "crossSigningPubKey"; mocked(mockClient.getCrypto()!.getCrossSigningKeyId).mockImplementation( async (type): Promise => { - if (!type || type === "master") { + if (!type || type === CrossSigningKey.Master) { return crossSigningPubKey; } return null;