1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00

fix more unit tests

This commit is contained in:
Hubert Chathi
2021-05-26 18:18:30 -04:00
parent e73b969066
commit 07bfa5532e
2 changed files with 4 additions and 1 deletions

View File

@@ -258,6 +258,9 @@ describe("MegolmDecryption", function() {
}); });
it("re-uses sessions for sequential messages", async function() { it("re-uses sessions for sequential messages", async function() {
mockCrypto._backupManager = {
backupGroupSession: () => {},
};
const mockStorage = new MockStorageApi(); const mockStorage = new MockStorageApi();
const cryptoStore = new MemoryCryptoStore(mockStorage); const cryptoStore = new MemoryCryptoStore(mockStorage);

View File

@@ -376,7 +376,7 @@ describe("Secrets", function() {
]); ]);
this.emit("accountData", event); this.emit("accountData", event);
}; };
bob._crypto.checkKeyBackup = async () => {}; bob._crypto._backupManager.checkKeyBackup = async () => {};
const crossSigning = bob._crypto._crossSigningInfo; const crossSigning = bob._crypto._crossSigningInfo;
const secretStorage = bob._crypto._secretStorage; const secretStorage = bob._crypto._secretStorage;