mirror of
https://github.com/vector-im/element-web.git
synced 2026-03-06 22:12:15 +01:00
chore: fix prettier issue on test file (#32733)
This commit is contained in:
parent
c7092955b1
commit
cd3b9efe50
@ -120,7 +120,9 @@ describe("SetupEncryptionToast", () => {
|
||||
|
||||
const crypto = client.getCrypto()!;
|
||||
|
||||
jest.spyOn(SecurityManager, "accessSecretStorage").mockImplementation(async (func = async (): Promise<void> => {}) => func());
|
||||
jest.spyOn(SecurityManager, "accessSecretStorage").mockImplementation(
|
||||
async (func = async (): Promise<void> => {}) => func(),
|
||||
);
|
||||
|
||||
// Given we throw when trying to load the backup decrption key
|
||||
mocked(crypto.loadSessionBackupPrivateKeyFromSecretStorage).mockRejectedValue(
|
||||
@ -216,7 +218,9 @@ describe("SetupEncryptionToast", () => {
|
||||
});
|
||||
|
||||
it("should go to change recovery key when recovering fails inside loadSessionBackup...", async () => {
|
||||
jest.spyOn(SecurityManager, "accessSecretStorage").mockImplementation(async (func = async (): Promise<void> => {}) => func());
|
||||
jest.spyOn(SecurityManager, "accessSecretStorage").mockImplementation(
|
||||
async (func = async (): Promise<void> => {}) => func(),
|
||||
);
|
||||
|
||||
jest.spyOn(DeviceListener.sharedInstance(), "keyStorageOutOfSyncNeedsCrossSigningReset").mockResolvedValue(
|
||||
true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user