dbkr/key_backup_by_default
David Baker 2024-10-22 16:03:26 +01:00
parent ce98a0f988
commit 6a912e28be
1 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,7 @@ describe("<MatrixChat />", () => {
isRoomEncrypted: jest.fn(),
logout: jest.fn(),
getDeviceId: jest.fn(),
getKeyBackupVersion: jest.fn().mockResolvedValue(null),
});
let mockClient: Mocked<MatrixClient>;
const serverConfig = {
@ -1009,6 +1010,7 @@ describe("<MatrixChat />", () => {
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);
});