This commit is contained in:
David Baker 2024-10-22 16:03:26 +01:00
parent ce98a0f988
commit 6a912e28be

View file

@ -148,6 +148,7 @@ describe("<MatrixChat />", () => {
isRoomEncrypted: jest.fn(), isRoomEncrypted: jest.fn(),
logout: jest.fn(), logout: jest.fn(),
getDeviceId: jest.fn(), getDeviceId: jest.fn(),
getKeyBackupVersion: jest.fn().mockResolvedValue(null),
}); });
let mockClient: Mocked<MatrixClient>; let mockClient: Mocked<MatrixClient>;
const serverConfig = { const serverConfig = {
@ -1009,6 +1010,7 @@ describe("<MatrixChat />", () => {
userHasCrossSigningKeys: jest.fn().mockResolvedValue(false), userHasCrossSigningKeys: jest.fn().mockResolvedValue(false),
// This needs to not finish immediately because we need to test the screen appears // This needs to not finish immediately because we need to test the screen appears
bootstrapCrossSigning: jest.fn().mockImplementation(() => bootstrapDeferred.promise), bootstrapCrossSigning: jest.fn().mockImplementation(() => bootstrapDeferred.promise),
resetKeyBackup: jest.fn(),
}; };
loginClient.getCrypto.mockReturnValue(mockCrypto as any); loginClient.getCrypto.mockReturnValue(mockCrypto as any);
}); });