You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Fix wrong room topic tooltip position (#10667)
* Fix wrong room topic tooltip position * Update snapshots * Fix tests
This commit is contained in:
committed by
GitHub
parent
93b4ee654b
commit
1efa82917a
@ -75,13 +75,13 @@ describe("MegolmExportEncryption", function () {
|
||||
let MegolmExportEncryption: typeof MegolmExportEncryptionExport;
|
||||
|
||||
beforeEach(() => {
|
||||
window.crypto = {
|
||||
getRandomValues,
|
||||
randomUUID: jest.fn().mockReturnValue("not-random-uuid"),
|
||||
subtle: webCrypto.subtle,
|
||||
};
|
||||
// @ts-ignore for some reason including it in the object above gets ignored
|
||||
window.crypto.subtle = webCrypto.subtle;
|
||||
Object.defineProperty(window, "crypto", {
|
||||
value: {
|
||||
getRandomValues,
|
||||
randomUUID: jest.fn().mockReturnValue("not-random-uuid"),
|
||||
subtle: webCrypto.subtle,
|
||||
},
|
||||
});
|
||||
MegolmExportEncryption = require("../../src/utils/MegolmExportEncryption");
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user