diff --git a/test/test-utils/client.ts b/test/test-utils/client.ts
index d4f2878004..19625043e1 100644
--- a/test/test-utils/client.ts
+++ b/test/test-utils/client.ts
@@ -135,7 +135,6 @@ export const mockClientMethodsDevice = (
deviceId = "test-device-id",
): Partial
, unknown>> => ({
getDeviceId: jest.fn().mockReturnValue(deviceId),
- getDeviceEd25519Key: jest.fn(),
getDevices: jest.fn().mockResolvedValue({ devices: [] }),
});
@@ -164,10 +163,9 @@ export const mockClientMethodsCrypto = (): Partial<
isSecretStorageReady: jest.fn(),
getSessionBackupPrivateKey: jest.fn(),
getVersion: jest.fn().mockReturnValue("Version 0"),
- getOwnDeviceKeys: jest.fn(),
+ getOwnDeviceKeys: jest.fn().mockReturnValue(new Promise(() => {})),
getCrossSigningKeyId: jest.fn(),
}),
- getDeviceEd25519Key: jest.fn(),
});
export const mockClientMethodsRooms = (rooms: Room[] = []): Partial, unknown>> => ({
diff --git a/test/test-utils/test-utils.ts b/test/test-utils/test-utils.ts
index 092f30fb52..b0c3dda279 100644
--- a/test/test-utils/test-utils.ts
+++ b/test/test-utils/test-utils.ts
@@ -124,6 +124,7 @@ export function createTestClient(): MatrixClient {
},
},
getCrypto: jest.fn().mockReturnValue({
+ getOwnDeviceKeys: jest.fn(),
getUserDeviceInfo: jest.fn(),
getUserVerificationStatus: jest.fn(),
getDeviceVerificationStatus: jest.fn(),
From ad94c39e5002246db7c5a829ecc7a5e6975057ee Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Wed, 25 Sep 2024 11:01:38 +0100
Subject: [PATCH 2/2] Fix accessible label on left panel spotlight trigger
(#87)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---
src/components/structures/RoomSearch.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/structures/RoomSearch.tsx b/src/components/structures/RoomSearch.tsx
index ff45c8466b..26df4d3e08 100644
--- a/src/components/structures/RoomSearch.tsx
+++ b/src/components/structures/RoomSearch.tsx
@@ -62,7 +62,7 @@ export default class RoomSearch extends React.PureComponent {
);
return (
-
+
{icon}
{!this.props.isMinimized && (
{_t("action|search")}