You've already forked matrix-js-sdk
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:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user