From 6a912e28be76073661704a39dd911ed7ccdf2865 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 22 Oct 2024 16:03:26 +0100 Subject: [PATCH] Fix test --- test/unit-tests/components/structures/MatrixChat-test.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit-tests/components/structures/MatrixChat-test.tsx b/test/unit-tests/components/structures/MatrixChat-test.tsx index 7f565d682f..c042fd1b3b 100644 --- a/test/unit-tests/components/structures/MatrixChat-test.tsx +++ b/test/unit-tests/components/structures/MatrixChat-test.tsx @@ -148,6 +148,7 @@ describe("", () => { isRoomEncrypted: jest.fn(), logout: jest.fn(), getDeviceId: jest.fn(), + getKeyBackupVersion: jest.fn().mockResolvedValue(null), }); let mockClient: Mocked; const serverConfig = { @@ -1009,6 +1010,7 @@ describe("", () => { userHasCrossSigningKeys: jest.fn().mockResolvedValue(false), // This needs to not finish immediately because we need to test the screen appears bootstrapCrossSigning: jest.fn().mockImplementation(() => bootstrapDeferred.promise), + resetKeyBackup: jest.fn(), }; loginClient.getCrypto.mockReturnValue(mockCrypto as any); });