mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-18 16:12:14 +03:00
Add mock
so test passes again
This commit is contained in:
parent
6bff653339
commit
b5ae775d8f
1 changed files with 1 additions and 0 deletions
|
@ -281,6 +281,7 @@ export function createTestClient(): MatrixClient {
|
||||||
getLocalAliases: jest.fn().mockReturnValue([]),
|
getLocalAliases: jest.fn().mockReturnValue([]),
|
||||||
uploadDeviceSigningKeys: jest.fn(),
|
uploadDeviceSigningKeys: jest.fn(),
|
||||||
isKeyBackupKeyStored: jest.fn().mockResolvedValue(null),
|
isKeyBackupKeyStored: jest.fn().mockResolvedValue(null),
|
||||||
|
getKeyBackupVersion: jest.fn(),
|
||||||
} as unknown as MatrixClient;
|
} as unknown as MatrixClient;
|
||||||
|
|
||||||
client.reEmitter = new ReEmitter(client);
|
client.reEmitter = new ReEmitter(client);
|
||||||
|
|
Loading…
Reference in a new issue